{"templates":[{"u":"]uFsN*p:mUIJkZwt@>C)","tt":"Customer","type":"ft_lib_entry","usg":"USAGE_IN_TITLE","num":14,"order":0,"lib":"]swRkyjnJ+nGOe:nHQVj","r":true,"stats":"","hint":"","cnt":[{"s":"_index_{\"i\":1,\"t\":\"TT Customers\"}","i":0,"o":"]uFsN*p:mUIJkZwt@>C)","t":"]uFsN*p:mUIJkZwt@>C)"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"compactEditMode\":false,\"compactViewMode\":false,\"defaultEntriesIds\":[],\"relationType\":1,\"attrJsonTemplates\":[],\"maxObjects\":2147483647,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" | \",\"textDrawable\":false}","unique":false,"readonly":false},{"u":"EZ*b*eJD:l>(l1Pu>ilr","tt":"JS Invoice Color","type":"ft_script","usg":"HIDDEN","num":103,"order":1,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"let _hold \\u003d \\\"#3d92d6\\\"; \/\/ blue\\nlet _send \\u003d \\\"#ffb142\\\"; \/\/ yellow\\nlet _error \\u003d \\\"#f44336\\\"; \/\/ red\\nlet _sent \\u003d \\\"#007b29\\\"; \/\/ green\\n\\nlet inv \\u003d field(\\\"qb_id\\\") !\\u003d \\\"\\\";\\nlet estCtx \\u003d !inv \\u0026\\u0026 !field(\\\"qb_act_sync\\\")\\n    \\u0026\\u0026 (field(\\\"qb_estimate_id\\\") !\\u003d \\\"\\\" || field(\\\"qb_estimate_act_sync\\\"));\\n\\nif (estCtx) {\\n    let pending \\u003d field(\\\"qb_estimate_act_sync\\\") || field(\\\"qb_estimate_need_to_send\\\");\\n    if (field(\\\"qb_estimate_dont_send\\\") \\u0026\\u0026 (pending || !field(\\\"qb_estimate_sent\\\")))\\n        _hold;\\n    else if (pending)\\n        _send;\\n    else if (field(\\\"qb_estimate_sent\\\"))\\n        _sent;\\n    else\\n        \\\"#ffffff\\\";\\n}\\nelse if (field(\\\"qb_id\\\")\\u003d\\u003d\\\"\\\" \\u0026\\u0026 field(\\\"qb_act_sync\\\")\\u003d\\u003dfalse \\u0026\\u0026 field(\\\"qb_act_dont_send\\\")\\u003d\\u003dfalse)\\n    \\\"#ffffff\\\";\\nelse if (field(\\\"qb_id\\\")!\\u003d\\\"\\\" \\u0026\\u0026 field(\\\"qb_act_sync\\\")\\u003d\\u003dfalse \\u0026\\u0026 field(\\\"qb_act_dont_send\\\")\\u003d\\u003dfalse \\u0026\\u0026 field(\\\"qb_sent\\\"))\\n    _sent;\\nelse if (field(\\\"qb_act_dont_send\\\")) {\\n    _hold;\\n}\\nelse if (field(\\\"qb_act_dont_send\\\")\\u003d\\u003dfalse)\\n    _send;\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"EZ*b*eJD:l>(l1Pu>ilr","t":"EZ*b*eJD:l>(l1Pu>ilr"}],"depend":"","disp_title":true,"entry_color":true,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"[g&am]wi&[[]+3B]VqcH","tt":"JS Invoice Background Color","type":"ft_script","usg":"HIDDEN","num":95,"order":2,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"let _created \\u003d \\\"#d6eadf\\\"; \/\/ green: invoiced\\nlet _create_update \\u003d \\\"#f7d794\\\"; \/\/ gold: waiting for the next MQSync run\\nlet _error \\u003d \\\"#eac4d5\\\"; \/\/ red\\nlet _estimate_open \\u003d \\\"#d9e6f5\\\"; \/\/ light blue: estimate in QuickBooks, no answer yet\\nlet _estimate_accepted \\u003d \\\"#e2d9f3\\\"; \/\/ lavender: estimate accepted, not invoiced yet\\n\\nlet noInvoice \\u003d field(\\\"qb_id\\\") \\u003d\\u003d \\\"\\\";\\nlet hasEstimate \\u003d field(\\\"qb_estimate_id\\\") !\\u003d \\\"\\\";\\n\\nif (field(\\\"qb_state_error\\\") \\u003d\\u003d true)\\n    _error;\\nelse if (field(\\\"qb_act_sync\\\"))\\n    _create_update;\\nelse if (noInvoice \\u0026\\u0026 field(\\\"qb_estimate_act_sync\\\"))\\n    _create_update;\\nelse if (noInvoice \\u0026\\u0026 hasEstimate \\u0026\\u0026 field(\\\"Estimate accepted\\\"))\\n    _estimate_accepted;\\nelse if (noInvoice \\u0026\\u0026 hasEstimate)\\n    _estimate_open;\\nelse if (!noInvoice)\\n    _created;\\nelse\\n    \\\"#ffffff\\\";\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"[g&am]wi&[[]+3B]VqcH","t":"[g&am]wi&[[]+3B]VqcH"}],"depend":"","disp_title":true,"entry_color":true,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":1,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"KAJrImMLHZc(u)HG9r&#","tt":"Shipping Address","type":"ft_subheader","usg":"NOT_USAGE","num":133,"order":3,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"KAJrImMLHZc(u)HG9r&#","t":"KAJrImMLHZc(u)HG9r&#"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"OC#gc>ap)UC&eaxAk(mD","tt":"ShipAddrLine1","type":"ft_string","usg":"NOT_USAGE","num":125,"order":4,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"OC#gc>ap)UC&eaxAk(mD","t":"OC#gc>ap)UC&eaxAk(mD"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"HtbRKHc(7qDJKZJHn->J","tt":"ShipAddrLine2","type":"ft_string","usg":"NOT_USAGE","num":126,"order":5,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"HtbRKHc(7qDJKZJHn->J","t":"HtbRKHc(7qDJKZJHn->J"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"TEJIbN+4FQIy5C1HV]A#","tt":"ShipAddrCity","type":"ft_string","usg":"NOT_USAGE","num":127,"order":6,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"TEJIbN+4FQIy5C1HV]A#","t":"TEJIbN+4FQIy5C1HV]A#"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"[*2VA5Y#iap[o6xjo2)N","tt":"ShipAddrZipCode","type":"ft_string","usg":"NOT_USAGE","num":128,"order":7,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"[*2VA5Y#iap[o6xjo2)N","t":"[*2VA5Y#iap[o6xjo2)N"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"(hwUFPB!*ydTaghJx<I0","tt":"ShipAddrState","type":"ft_string","usg":"NOT_USAGE","num":129,"order":8,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"(hwUFPB!*ydTaghJx<I0","t":"(hwUFPB!*ydTaghJx<I0"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"ORIuy*2CQP@tW:Q]LiYS","tt":"ShipAddrCountry","type":"ft_string","usg":"NOT_USAGE","num":130,"order":9,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"ORIuy*2CQP@tW:Q]LiYS","t":"ORIuy*2CQP@tW:Q]LiYS"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"@l4DTEY!K(<O6[>Brm6I","tt":"ShipAddrLatitude","type":"ft_string","usg":"NOT_USAGE","num":131,"order":10,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"@l4DTEY!K(<O6[>Brm6I","t":"@l4DTEY!K(<O6[>Brm6I"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"%TgO[U*VY3a4k;!;w#O2","tt":"ShipAddrLongitude","type":"ft_string","usg":"NOT_USAGE","num":132,"order":11,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"%TgO[U*VY3a4k;!;w#O2","t":"%TgO[U*VY3a4k;!;w#O2"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Zt(:L%Pyfq<LeiWMx4yE","tt":"Estimate","type":"ft_subheader","usg":"NOT_USAGE","num":168,"order":12,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"Zt(:L%Pyfq<LeiWMx4yE","t":"Zt(:L%Pyfq<LeiWMx4yE"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"+Ovh<%@#tg7@l*MjRNLW","tt":"Estimate status","type":"ft_script","usg":"NOT_USAGE","num":167,"order":13,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"let est   \\u003d field(\\\"qb_estimate_id\\\") !\\u003d \\\"\\\";\\nlet inv   \\u003d field(\\\"qb_id\\\") !\\u003d \\\"\\\";\\nlet resp  \\u003d String(field(\\\"qb_response\\\") || \\\"\\\");\\n\\nif (field(\\\"qb_state_error\\\") \\u003d\\u003d true \\u0026\\u0026 resp.indexOf(\\\"Estimate\\\") \\u003d\\u003d 0)\\n    \\\"Error\\\";\\nelse if (est \\u0026\\u0026 inv)\\n    \\\"Invoiced\\\";\\nelse if (field(\\\"qb_estimate_act_sync\\\"))\\n    \\\"Waiting to sync\\\";\\nelse if (est \\u0026\\u0026 field(\\\"Estimate accepted\\\"))\\n    \\\"Accepted\\\";\\nelse if (est \\u0026\\u0026 field(\\\"qb_estimate_dont_send\\\") \\u0026\\u0026 !field(\\\"qb_estimate_sent\\\"))\\n    \\\"Not sent (paused)\\\";\\nelse if (est \\u0026\\u0026 field(\\\"qb_estimate_sent\\\"))\\n    \\\"Sent\\\";\\nelse if (est \\u0026\\u0026 field(\\\"qb_estimate_need_to_send\\\"))\\n    \\\"Waiting to sync\\\";\\nelse if (!est \\u0026\\u0026 !inv)\\n    \\\"Draft\\\";\\nelse\\n    \\\" \\\";\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"+Ovh<%@#tg7@l*MjRNLW","t":"+Ovh<%@#tg7@l*MjRNLW"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"UOtU6QqXW4cbyP4N8]F+","tt":"Sync estimate","type":"ft_button","usg":"NOT_USAGE","num":170,"order":14,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"UOtU6QqXW4cbyP4N8]F+","t":"UOtU6QqXW4cbyP4N8]F+"}],"depend":"[{\"template_index\":162,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"false\"]}]},{\"template_index\":117,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"false\"]}]},{\"template_index\":115,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"false\"]}]},{\"template_index\":118,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"false\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"backgroundColor\":-16746133,\"script\":\"{\\\"enabled\\\":true,\\\"event\\\":\\\"BUTTON\\\",\\\"jsLibs\\\":[],\\\"modifiedTime\\\":0,\\\"moment\\\":\\\"VIEW_ENTRY_CONTEXT\\\",\\\"name\\\":\\\"Script\\\",\\\"script\\\":\\\"est_sync_switch();\\\"}\",\"share\":\"\",\"type\":\"SCRIPT\",\"url\":\"\",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Y5Y+LZqzucCjtOwF0YN5","tt":"Pause email","type":"ft_button","usg":"NOT_USAGE","num":171,"order":15,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"Y5Y+LZqzucCjtOwF0YN5","t":"Y5Y+LZqzucCjtOwF0YN5"}],"depend":"[{\"template_index\":115,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"false\"]}]},{\"template_index\":118,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"false\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"script\":\"{\\\"enabled\\\":true,\\\"event\\\":\\\"BUTTON\\\",\\\"jsLibs\\\":[],\\\"modifiedTime\\\":0,\\\"moment\\\":\\\"VIEW_ENTRY_CONTEXT\\\",\\\"name\\\":\\\"Script\\\",\\\"script\\\":\\\"est_pause_email();\\\"}\",\"share\":\"\",\"type\":\"SCRIPT\",\"url\":\"\",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"CEEswLt<Y)Rh3wY6Pg<A","tt":"Estimate number","type":"ft_string","usg":"USAGE_IN_STATUS","num":160,"order":16,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"CEEswLt<Y)Rh3wY6Pg<A","t":"CEEswLt<Y)Rh3wY6Pg<A"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"(ohWcrS&x4j&KLwM6Z9H","tt":"Estimate total","type":"ft_money","usg":"NOT_USAGE","num":161,"order":17,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"USD","o":"(ohWcrS&x4j&KLwM6Z9H","t":"(ohWcrS&x4j&KLwM6Z9H"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":2,\\\"rules\\\":[{\\\"color\\\":-16738680,\\\"rule\\\":{\\\"t\\\":5,\\\"v\\\":0,\\\"v2\\\":0}}]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"@JRQxDf>(ouQIFqJUgbi","tt":"estimatePDF","type":"ft_file","usg":"NOT_USAGE","num":157,"order":18,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"@JRQxDf>(ouQIFqJUgbi","t":"@JRQxDf>(ouQIFqJUgbi"}],"depend":"[{\"template_index\":105,\"type_class\":\"com.luckydroid.droidbase7.depend.VisibleFieldDependType\",\"only_edit\":true,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"1\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Ul[ET+4-SoVmJ%6W8sz;","tt":"Estimate date","type":"ft_date","usg":"NOT_USAGE","num":163,"order":19,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"Ul[ET+4-SoVmJ%6W8sz;","t":"Ul[ET+4-SoVmJ%6W8sz;"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"dateTimeFormats\":{\"dateFormat\":\"MMM d, yyyy\",\"dateFormatLang\":\"en_US\"},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"IPHub*yi)a*JyLoTC2DQ","tt":"Expiration date","type":"ft_date","usg":"NOT_USAGE","num":164,"order":20,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"IPHub*yi)a*JyLoTC2DQ","t":"IPHub*yi)a*JyLoTC2DQ"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"dateTimeFormats\":{\"dateFormat\":\"MMM d, yyyy\",\"dateFormatLang\":\"en_US\"},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"C#GulE0APd5srkwDuei:","tt":"Customer signature","type":"ft_signature","usg":"NOT_USAGE","num":169,"order":21,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"_backgroundColor\":-5592406,\"_cropEmpty\":true,\"_fullScreen\":false,\"_height\":1200,\"_paintColor\":-13421773,\"_paintWidth\":5,\"_signatureMode\":true,\"_width\":1080}","o":"C#GulE0APd5srkwDuei:","t":"C#GulE0APd5srkwDuei:"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"captureMaxHeight\":0,\"captureMaxWidth\":0,\"fileNamePattern\":\"TIME\",\"orientation\":1,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"(tBOhqq&PJu*EK5lGsht","tt":"Accepted by","type":"ft_string","usg":"NOT_USAGE","num":165,"order":22,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"(tBOhqq&PJu*EK5lGsht","t":"(tBOhqq&PJu*EK5lGsht"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":")<W&69OBBw4ViBCPV61I","tt":"Estimate accepted","type":"ft_boolean","usg":"NOT_USAGE","num":162,"order":23,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":")<W&69OBBw4ViBCPV61I","t":")<W&69OBBw4ViBCPV61I"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Q2[PL-@buIVO!zmq27Rs","tt":"Accepted date","type":"ft_date","usg":"NOT_USAGE","num":166,"order":24,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"Q2[PL-@buIVO!zmq27Rs","t":"Q2[PL-@buIVO!zmq27Rs"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"dateTimeFormats\":{\"dateFormat\":\"MMM d, yyyy\",\"dateFormatLang\":\"en_US\"},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"ZuXlfYl<IgXwQyoqiIDq","tt":"Time & Travel","type":"ft_subheader","usg":"NOT_USAGE","num":135,"order":25,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"ZuXlfYl<IgXwQyoqiIDq","t":"ZuXlfYl<IgXwQyoqiIDq"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"OtxC>R>HtHDsPb>sdCZ9","tt":"Start travel","type":"ft_button","usg":"NOT_USAGE","num":136,"order":26,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"OtxC>R>HtHDsPb>sdCZ9","t":"OtxC>R>HtHDsPb>sdCZ9"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"script\":\"{\\\"name\\\":\\\"Script\\\",\\\"event\\\":\\\"BUTTON\\\",\\\"moment\\\":\\\"VIEW_ENTRY_CONTEXT\\\",\\\"script\\\":\\\"var e \\\\u003d entry();\\\\nif (e.field(\\\\\\\"Travel started\\\\\\\") \\\\u0026\\\\u0026 !e.field(\\\\\\\"Travel arrived\\\\\\\")) {\\\\n    message(\\\\\\\"Travel already started at \\\\\\\" + tt_time(e.field(\\\\\\\"Travel started\\\\\\\")));\\\\n    exit();\\\\n}\\\\ne.set(\\\\\\\"Travel basis\\\\\\\", \\\\\\\"Actual\\\\\\\");\\\\ne.set(\\\\\\\"Travel started\\\\\\\", new Date());\\\\ne.set(\\\\\\\"Travel arrived\\\\\\\", null);\\\\nmessage(\\\\\\\"Travel started\\\\\\\");\\\",\\\"enabled\\\":true,\\\"jsLibs\\\":[\\\"moment.min.js\\\"],\\\"history\\\":[],\\\"modifiedTime\\\":0}\",\"share\":\"\",\"type\":\"SCRIPT\",\"url\":\"\",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"H)Qm9zSQ]PQFqof+Q1eZ","tt":"Arrived","type":"ft_button","usg":"NOT_USAGE","num":137,"order":27,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"H)Qm9zSQ]PQFqof+Q1eZ","t":"H)Qm9zSQ]PQFqof+Q1eZ"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"script\":\"{\\\"name\\\":\\\"Script\\\",\\\"event\\\":\\\"BUTTON\\\",\\\"moment\\\":\\\"VIEW_ENTRY_CONTEXT\\\",\\\"script\\\":\\\"var e \\\\u003d entry();\\\\nif (!e.field(\\\\\\\"Travel started\\\\\\\")) {\\\\n    message(\\\\\\\"Tap Start travel first\\\\\\\");\\\\n    exit();\\\\n}\\\\ne.set(\\\\\\\"Travel arrived\\\\\\\", new Date());\\\\nmessage(\\\\\\\"Travel: \\\\\\\" + tt_travel_hours(e) + \\\\\\\" h\\\\\\\");\\\",\\\"enabled\\\":true,\\\"jsLibs\\\":[],\\\"history\\\":[],\\\"modifiedTime\\\":0}\",\"share\":\"\",\"type\":\"SCRIPT\",\"url\":\"\",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"[tiT&cp5>KzbjNRqqho+","tt":"Travel started","type":"ft_date_time","usg":"NOT_USAGE","num":138,"order":28,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"[tiT&cp5>KzbjNRqqho+","t":"[tiT&cp5>KzbjNRqqho+"}],"depend":"[{\"template_index\":149,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"1\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"dateTimeFormats\":{\"dateFormat\":\"MMM d, yyyy\",\"dateFormatLang\":\"en_US\"},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"QhqZ*k9%dwLD3hZ2#cHs","tt":"Travel arrived","type":"ft_date_time","usg":"NOT_USAGE","num":139,"order":29,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"QhqZ*k9%dwLD3hZ2#cHs","t":"QhqZ*k9%dwLD3hZ2#cHs"}],"depend":"[{\"template_index\":149,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"1\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"dateTimeFormats\":{\"dateFormat\":\"MMM d, yyyy\",\"dateFormatLang\":\"en_US\"},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"]*cLARQ8E]pf8&PDC7Ve","tt":"Route from office","type":"ft_button","usg":"NOT_USAGE","num":140,"order":30,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"]*cLARQ8E]pf8&PDC7Ve","t":"]*cLARQ8E]pf8&PDC7Ve"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"script\":\"{\\\"name\\\":\\\"Script\\\",\\\"event\\\":\\\"BUTTON\\\",\\\"moment\\\":\\\"VIEW_ENTRY_CONTEXT\\\",\\\"script\\\":\\\"var e \\\\u003d entry();\\\\nvar origin \\\\u003d String(e.field(\\\\\\\"Office address\\\\\\\") || \\\\\\\"\\\\\\\").trim();\\\\nvar dest \\\\u003d tt_destination(e);\\\\nif (!origin) {\\\\n    dialog_message(\\\\\\\"Enter your office address in the Office address field first.\\\\\\\\n\\\\\\\\n\\\\\\\" +\\\\n        \\\\\\\"Tip: set it as the field\\\\u0027s default value in the library settings, and every new work order will have it.\\\\\\\");\\\\n    exit();\\\\n}\\\\nif (!dest) {\\\\n    dialog_message(\\\\\\\"This work order has no street address: fill the Shipping Address here or in the customer.\\\\\\\");\\\\n    exit();\\\\n}\\\\nif (!TT_GOOGLE_MAPS_KEY) {\\\\n    dialog_message(\\\\\\\"Route from office needs a Google Maps API key.\\\\\\\\n\\\\\\\\n\\\\\\\" +\\\\n        \\\\\\\"Open the library\\\\u0027s scripts, the shared script \\\\\\\\\\\\\\\"Time \\\\u0026 Travel\\\\\\\\\\\\\\\", and paste your key into TT_GOOGLE_MAPS_KEY. \\\\\\\" +\\\\n        \\\\\\\"The instructions there say how to get a free demo key in a minute.\\\\\\\");\\\\n    exit();\\\\n}\\\\n\\\\nvar url \\\\u003d \\\\\\\"https:\/\/routes.googleapis.com\/directions\/v2:computeRoutes\\\\\\\" +\\\\n    \\\\\\\"?key\\\\u003d\\\\\\\" + encodeURIComponent(TT_GOOGLE_MAPS_KEY) + \\\\\\\"\\\\u0026fields\\\\u003droutes.duration\\\\\\\";\\\\nvar body \\\\u003d JSON.stringify({\\\\n    origin: { address: origin },\\\\n    destination: { address: dest },\\\\n    travelMode: \\\\\\\"DRIVE\\\\\\\",\\\\n    routingPreference: TT_USE_TRAFFIC ? \\\\\\\"TRAFFIC_AWARE\\\\\\\" : \\\\\\\"TRAFFIC_UNAWARE\\\\\\\"\\\\n});\\\\nvar h \\\\u003d http();\\\\nh.headers({ \\\\\\\"Content-Type\\\\\\\": \\\\\\\"application\/json\\\\\\\" });\\\\nvar resp \\\\u003d h.post(url, body);\\\\nvar data \\\\u003d {};\\\\ntry { data \\\\u003d JSON.parse(resp.body); } catch (x) {}\\\\nif (resp.code !\\\\u003d 200 || !data.routes || !data.routes.length) {\\\\n    var why \\\\u003d data.error \\\\u0026\\\\u0026 data.error.message ? data.error.message : \\\\\\\"HTTP \\\\\\\" + resp.code;\\\\n    dialog_message(\\\\\\\"Google Maps could not calculate the route:\\\\\\\\n\\\\\\\\n\\\\\\\" + why);\\\\n    exit();\\\\n}\\\\n\\\\nvar seconds \\\\u003d parseInt(String(data.routes[0].duration), 10);   \/\/ \\\\\\\"1234s\\\\\\\"\\\\ne.set(\\\\\\\"Office travel time\\\\\\\", seconds * 1000);\\\\ne.set(\\\\\\\"Travel basis\\\\\\\", \\\\\\\"From office\\\\\\\");\\\\nmessage(\\\\\\\"Office to customer: \\\\\\\" + Math.round(seconds \/ 60) + \\\\\\\" min one way\\\\\\\");\\\\n\\\\nvar mapUrl \\\\u003d \\\\\\\"https:\/\/www.google.com\/maps\/dir\/?api\\\\u003d1\\\\u0026travelmode\\\\u003ddriving\\\\\\\" +\\\\n    \\\\\\\"\\\\u0026origin\\\\u003d\\\\\\\" + encodeURIComponent(origin) + \\\\\\\"\\\\u0026destination\\\\u003d\\\\\\\" + encodeURIComponent(dest);\\\\ntry {\\\\n    var i \\\\u003d intent(\\\\\\\"android.intent.action.VIEW\\\\\\\");\\\\n    i.data(mapUrl);\\\\n    i.send();\\\\n} catch (x) {}\\\",\\\"enabled\\\":true,\\\"jsLibs\\\":[],\\\"history\\\":[],\\\"modifiedTime\\\":0}\",\"share\":\"\",\"type\":\"SCRIPT\",\"url\":\"\",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Wt-B#iJ>9*j]B0:Fyo46","tt":"Office travel time","type":"ft_duration","usg":"NOT_USAGE","num":141,"order":31,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"Wt-B#iJ>9*j]B0:Fyo46","t":"Wt-B#iJ>9*j]B0:Fyo46"}],"depend":"[{\"template_index\":149,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"2\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"format\":1,\"maxAccuracy\":\"HOUR\",\"minAccuracy\":\"SECOND\",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"@F8<L(vSHde8(q%Esu85","tt":"Travel hours","type":"ft_script","usg":"NOT_USAGE","num":142,"order":32,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"function ch(n) { var v \\u003d field(n); if (Object.prototype.toString.call(v) \\u003d\\u003d\\u003d \\\"[object Array]\\\") v \\u003d v.length ? v[0] : \\\"\\\"; return String(v || \\\"\\\"); }\\nfunction hb(a, b) { if (!a || !b) return 0; var ms \\u003d Number(new Date(b)) - Number(new Date(a)); return ms \\u003e 0 ? ms \/ 3600000 : 0; }\\nfunction rnd(h) { var m \\u003d ch(\\\"Time rounding\\\"); if (m \\u003d\\u003d\\u003d \\\"15 min\\\") return Math.round(h * 4) \/ 4; if (m \\u003d\\u003d\\u003d \\\"Exact\\\") return Math.round(h * 100) \/ 100; return Math.round(h * 10) \/ 10; }\\nvar one \\u003d ch(\\\"Travel basis\\\") \\u003d\\u003d\\u003d \\\"From office\\\"\\n    ? (Number(field(\\\"Office travel time\\\")) || 0) \/ 3600000\\n    : hb(field(\\\"Travel started\\\"), field(\\\"Travel arrived\\\"));\\nvar h \\u003d rnd(one * (ch(\\\"Travel trip\\\") \\u003d\\u003d\\u003d \\\"One way\\\" ? 1 : 2));\\nh ? h + \\\" h\\\" : \\\"\\\";\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"@F8<L(vSHde8(q%Esu85","t":"@F8<L(vSHde8(q%Esu85"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":")%i6-&VW#tINCY1z3mJd","tt":"Start work","type":"ft_button","usg":"NOT_USAGE","num":143,"order":33,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":")%i6-&VW#tINCY1z3mJd","t":")%i6-&VW#tINCY1z3mJd"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"backgroundColor\":-4201524,\"script\":\"{\\\"enabled\\\":true,\\\"event\\\":\\\"BUTTON\\\",\\\"jsLibs\\\":[\\\"moment.min.js\\\"],\\\"modifiedTime\\\":0,\\\"moment\\\":\\\"VIEW_ENTRY_CONTEXT\\\",\\\"name\\\":\\\"Script\\\",\\\"script\\\":\\\"var e \\\\u003d entry();\\\\nif (e.field(\\\\\\\"Work started\\\\\\\") \\\\u0026\\\\u0026 !e.field(\\\\\\\"Work stopped\\\\\\\")) {\\\\n    message(\\\\\\\"Work already started at \\\\\\\" + tt_time(e.field(\\\\\\\"Work started\\\\\\\")));\\\\n    exit();\\\\n}\\\\ne.set(\\\\\\\"Work started\\\\\\\", new Date());\\\\ne.set(\\\\\\\"Work stopped\\\\\\\", null);\\\\nmessage(\\\\\\\"Work started\\\\\\\");\\\"}\",\"share\":\"\",\"type\":\"SCRIPT\",\"url\":\"\",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"VR:CRYo!5:S6D2:7<tJQ","tt":"Work started","type":"ft_date_time","usg":"NOT_USAGE","num":145,"order":34,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"VR:CRYo!5:S6D2:7<tJQ","t":"VR:CRYo!5:S6D2:7<tJQ"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"dateTimeFormats\":{\"dateFormat\":\"MMM d, yyyy\",\"dateFormatLang\":\"en_US\"},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"]acnQyVml2G]mNh1FSK&","tt":"Stop work","type":"ft_button","usg":"NOT_USAGE","num":144,"order":35,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"]acnQyVml2G]mNh1FSK&","t":"]acnQyVml2G]mNh1FSK&"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"script\":\"{\\\"name\\\":\\\"Script\\\",\\\"event\\\":\\\"BUTTON\\\",\\\"moment\\\":\\\"VIEW_ENTRY_CONTEXT\\\",\\\"script\\\":\\\"var e \\\\u003d entry();\\\\nif (!e.field(\\\\\\\"Work started\\\\\\\")) {\\\\n    message(\\\\\\\"Tap Start work first\\\\\\\");\\\\n    exit();\\\\n}\\\\ne.set(\\\\\\\"Work stopped\\\\\\\", new Date());\\\\nmessage(\\\\\\\"Labor: \\\\\\\" + tt_labor_hours(e) + \\\\\\\" h\\\\\\\");\\\",\\\"enabled\\\":true,\\\"jsLibs\\\":[\\\"moment.min.js\\\"],\\\"history\\\":[],\\\"modifiedTime\\\":0}\",\"share\":\"\",\"type\":\"SCRIPT\",\"url\":\"\",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"PNn6*Af0!5)*XF7xv6Dw","tt":"Work stopped","type":"ft_date_time","usg":"NOT_USAGE","num":146,"order":36,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"PNn6*Af0!5)*XF7xv6Dw","t":"PNn6*Af0!5)*XF7xv6Dw"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"dateTimeFormats\":{\"dateFormat\":\"MMM d, yyyy\",\"dateFormatLang\":\"en_US\"},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"*eRywIW9Zsxd24Yjf%1(","tt":"Labor hours","type":"ft_script","usg":"NOT_USAGE","num":147,"order":37,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"function ch(n) { var v \\u003d field(n); if (Object.prototype.toString.call(v) \\u003d\\u003d\\u003d \\\"[object Array]\\\") v \\u003d v.length ? v[0] : \\\"\\\"; return String(v || \\\"\\\"); }\\nfunction hb(a, b) { if (!a || !b) return 0; var ms \\u003d Number(new Date(b)) - Number(new Date(a)); return ms \\u003e 0 ? ms \/ 3600000 : 0; }\\nfunction rnd(h) { var m \\u003d ch(\\\"Time rounding\\\"); if (m \\u003d\\u003d\\u003d \\\"15 min\\\") return Math.round(h * 4) \/ 4; if (m \\u003d\\u003d\\u003d \\\"Exact\\\") return Math.round(h * 100) \/ 100; return Math.round(h * 10) \/ 10; }\\nvar h \\u003d rnd(hb(field(\\\"Work started\\\"), field(\\\"Work stopped\\\")));\\nh ? h + \\\" h\\\" : \\\"\\\";\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"*eRywIW9Zsxd24Yjf%1(","t":"*eRywIW9Zsxd24Yjf%1("}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"PcFqt1kPjN*2jD6<D5)c","tt":"Add time to invoice","type":"ft_button","usg":"NOT_USAGE","num":148,"order":38,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"PcFqt1kPjN*2jD6<D5)c","t":"PcFqt1kPjN*2jD6<D5)c"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"backgroundColor\":-16746133,\"script\":\"{\\\"enabled\\\":true,\\\"event\\\":\\\"BUTTON\\\",\\\"jsLibs\\\":[\\\"moment.min.js\\\"],\\\"modifiedTime\\\":1793278591255,\\\"moment\\\":\\\"VIEW_ENTRY_CONTEXT\\\",\\\"name\\\":\\\"Script\\\",\\\"script\\\":\\\"var e \\\\u003d entry();\\\\n\\\\n\/\/ A new work order has no id until it is saved, and Memento cannot store a\\\\n\/\/ script-made link for it yet (SQLite: NOT NULL constraint on ownerUUID).\\\\n\/\/ Stop before touching any line, so nothing is half-written or lost.\\\\nfunction tt_is_saved(e) {\\\\n    try { return !!e.id; } catch (x) { return false; }\\\\n}\\\\nvar TT_SAVE_FIRST \\\\u003d \\\\\\\"Save the work order first (the check mark at the top), then tap Add time to invoice again.\\\\\\\";\\\\nif (!tt_is_saved(e)) {\\\\n    dialog_message(TT_SAVE_FIRST);\\\\n    exit();\\\\n}\\\\n\\\\nvar lines \\\\u003d [[TT_TRAVEL_ITEM, tt_travel_hours(e)], [TT_LABOR_ITEM, tt_labor_hours(e)]];\\\\nvar done \\\\u003d [], missing \\\\u003d [];\\\\nfor (var n \\\\u003d 0; n \\\\u003c lines.length; n++) {\\\\n    if (!lines[n][1])\\\\n        continue;\\\\n    var result;\\\\n    try {\\\\n        result \\\\u003d tt_set_line(e, lines[n][0], lines[n][1]);\\\\n    } catch (x) {\\\\n        dialog_message(TT_SAVE_FIRST);\\\\n        exit();\\\\n    }\\\\n    if (result \\\\u003d\\\\u003d\\\\u003d \\\\\\\"missing\\\\\\\")\\\\n        missing.push(lines[n][0]);\\\\n    else\\\\n        done.push(lines[n][0] + \\\\\\\": \\\\\\\" + lines[n][1] + \\\\\\\" h\\\\\\\");\\\\n}\\\\nif (!done.length \\\\u0026\\\\u0026 !missing.length) {\\\\n    dialog_message(\\\\\\\"No time recorded yet.\\\\\\\\n\\\\\\\\nTravel: Start travel and Arrived, or Route from office.\\\\\\\\nLabor: Start work and Stop work.\\\\\\\");\\\\n    exit();\\\\n}\\\\ntt_sort_lines(e);\\\\nfill_price_and_amount_in_lines();\\\\n\\\\nvar text \\\\u003d done.length ? \\\\\\\"Invoice lines set:\\\\\\\\n\\\\\\\" + done.join(\\\\\\\"\\\\\\\\n\\\\\\\") : \\\\\\\"\\\\\\\";\\\\nif (missing.length)\\\\n    text +\\\\u003d (text ? \\\\\\\"\\\\\\\\n\\\\\\\\n\\\\\\\" : \\\\\\\"\\\\\\\") + \\\\\\\"Not found in \\\\\\\" + TT_ITEMS_LIBRARY + \\\\\\\": \\\\\\\\\\\\\\\"\\\\\\\" + missing.join(\\\\\\\"\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"\\\\\\\") +\\\\n        \\\\\\\"\\\\\\\\\\\\\\\".\\\\\\\\nAdd them as services in QuickBooks (or in \\\\\\\" + TT_ITEMS_LIBRARY + \\\\\\\") with your hourly rate, sync, and tap again.\\\\\\\";\\\\ndialog_message(text);\\\"}\",\"share\":\"\",\"type\":\"SCRIPT\",\"url\":\"\",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"]L[OOG<t3:h):BH:!ZW#","tt":"Notes","type":"ft_subheader","usg":"NOT_USAGE","num":173,"order":39,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"i":0,"o":"]L[OOG<t3:h):BH:!ZW#","t":"]L[OOG<t3:h):BH:!ZW#"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"(n2I09NYs+hnp7WQ!fui","tt":"CustomerMemo","type":"ft_string","usg":"NOT_USAGE","num":1,"order":40,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"Message to the customer","cnt":[{"s":"","i":0,"o":"(n2I09NYs+hnp7WQ!fui","t":"(n2I09NYs+hnp7WQ!fui"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-12434878,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"+#p8H%m9gJN>7ET112:j","tt":"PrivateNote","type":"ft_string","usg":"NOT_USAGE","num":124,"order":41,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"Does not appear on the invoice to the customer","cnt":[{"s":"","i":0,"o":"+#p8H%m9gJN>7ET112:j","t":"+#p8H%m9gJN>7ET112:j"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-12434878,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"%7n;l(ML3oeD1pw<Isjm","tt":"Settings","type":"ft_subheader","usg":"NOT_USAGE","num":174,"order":42,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"i":1,"o":"%7n;l(ML3oeD1pw<Isjm","t":"%7n;l(ML3oeD1pw<Isjm"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"!X1w0Ab+h*oG56WbupSk","tt":"Travel basis","type":"ft_str_list","usg":"NOT_USAGE","num":149,"order":43,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"sl\":[{\"t\":\"Actual\",\"c\":1,\"def\":true,\"c_text\":false,\"f\":false,\"children\":[]},{\"t\":\"From office\",\"c\":2,\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]}],\"sort\":false}","i":0,"o":"!X1w0Ab+h*oG56WbupSk","t":"!X1w0Ab+h*oG56WbupSk"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"%q*N#W&3ICO@*v>c6qUz","tt":"Travel trip","type":"ft_str_list","usg":"NOT_USAGE","num":150,"order":44,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"sl\":[{\"t\":\"Round trip\",\"c\":1,\"def\":true,\"c_text\":false,\"f\":false,\"children\":[]},{\"t\":\"One way\",\"c\":2,\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]}],\"sort\":false}","i":0,"o":"%q*N#W&3ICO@*v>c6qUz","t":"%q*N#W&3ICO@*v>c6qUz"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"+TJ::DK[!y*;hQA70*ju","tt":"Time rounding","type":"ft_str_list","usg":"NOT_USAGE","num":151,"order":45,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"sl\":[{\"t\":\"0.1 h\",\"c\":1,\"def\":true,\"c_text\":false,\"f\":false,\"children\":[]},{\"t\":\"15 min\",\"c\":2,\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]},{\"t\":\"Exact\",\"c\":3,\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]}],\"sort\":false}","i":0,"o":"+TJ::DK[!y*;hQA70*ju","t":"+TJ::DK[!y*;hQA70*ju"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Y>Ke@nU]FVJ[D*4RSTd4","tt":"Office address","type":"ft_string","usg":"NOT_USAGE","num":152,"order":46,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"Y>Ke@nU]FVJ[D*4RSTd4","t":"Y>Ke@nU]FVJ[D*4RSTd4"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"VqllNJmkzCuF3Ds9*GZC","tt":"Item or Service Link","type":"ft_lib_entry","usg":"NOT_USAGE","num":111,"order":47,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"_index_{\"i\":2,\"t\":\"TT Items\"}","i":0,"o":"VqllNJmkzCuF3Ds9*GZC","t":"VqllNJmkzCuF3Ds9*GZC"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"compactEditMode\":false,\"compactViewMode\":false,\"defaultEntriesIds\":[],\"relationType\":0,\"attrJsonTemplates\":[\"{\\\"u\\\":\\\"-)\\u0026ekii[PHEOwWua*LVO\\\",\\\"tt\\\":\\\"Price\\\",\\\"type\\\":\\\"ft_money\\\",\\\"usg\\\":\\\"NOT_USAGE\\\",\\\"num\\\":1,\\\"order\\\":0,\\\"r\\\":false,\\\"stats\\\":\\\"\\\",\\\"hint\\\":\\\"\\\",\\\"cnt\\\":[{\\\"s\\\":\\\"USD\\\"}],\\\"depend\\\":\\\"\\\",\\\"disp_title\\\":true,\\\"entry_color\\\":false,\\\"show_in_table\\\":true,\\\"column_width\\\":100,\\\"week_event\\\":0,\\\"autofill\\\":\\\"\\\",\\\"card_align\\\":0,\\\"json_options\\\":\\\"{\\\\\\\"displayConvertUnitButton\\\\\\\":false,\\\\\\\"groupSeparator\\\\\\\":true,\\\\\\\"incDelta\\\\\\\":1.0,\\\\\\\"showCalc\\\\\\\":true,\\\\\\\"descriptionPos\\\\\\\":17,\\\\\\\"directEdit\\\\\\\":0,\\\\\\\"fieldColorTarget\\\\\\\":0,\\\\\\\"textDrawable\\\\\\\":false}\\\",\\\"unique\\\":false,\\\"readonly\\\":false}\",\"{\\\"u\\\":\\\"K\\u003eUOpy))\\u003el)7p]nFBCjT\\\",\\\"tt\\\":\\\"Quantity\\\",\\\"type\\\":\\\"ft_real\\\",\\\"usg\\\":\\\"NOT_USAGE\\\",\\\"num\\\":0,\\\"order\\\":1,\\\"r\\\":true,\\\"stats\\\":\\\"\\\",\\\"hint\\\":\\\"\\\",\\\"cnt\\\":[{\\\"s\\\":\\\"\\\"}],\\\"depend\\\":\\\"\\\",\\\"disp_title\\\":true,\\\"entry_color\\\":false,\\\"show_in_table\\\":true,\\\"column_width\\\":100,\\\"week_event\\\":0,\\\"autofill\\\":\\\"\\\",\\\"card_align\\\":0,\\\"json_options\\\":\\\"{\\\\\\\"displayConvertUnitButton\\\\\\\":false,\\\\\\\"groupSeparator\\\\\\\":false,\\\\\\\"incDelta\\\\\\\":1.0,\\\\\\\"showCalc\\\\\\\":false,\\\\\\\"descriptionPos\\\\\\\":17,\\\\\\\"directEdit\\\\\\\":0,\\\\\\\"fieldColorTarget\\\\\\\":0,\\\\\\\"textDrawable\\\\\\\":false}\\\",\\\"unique\\\":false,\\\"readonly\\\":false}\",\"{\\\"u\\\":\\\"WUiGe]+884e4iHd)cIhs\\\",\\\"tt\\\":\\\"Amount\\\",\\\"type\\\":\\\"ft_money\\\",\\\"usg\\\":\\\"NOT_USAGE\\\",\\\"num\\\":2,\\\"order\\\":2,\\\"r\\\":false,\\\"stats\\\":\\\"\\\",\\\"hint\\\":\\\"\\\",\\\"cnt\\\":[{\\\"s\\\":\\\"USD\\\"}],\\\"depend\\\":\\\"\\\",\\\"disp_title\\\":true,\\\"entry_color\\\":false,\\\"show_in_table\\\":true,\\\"column_width\\\":100,\\\"week_event\\\":0,\\\"autofill\\\":\\\"\\\",\\\"card_align\\\":0,\\\"json_options\\\":\\\"{\\\\\\\"displayConvertUnitButton\\\\\\\":false,\\\\\\\"groupSeparator\\\\\\\":true,\\\\\\\"incDelta\\\\\\\":1.0,\\\\\\\"showCalc\\\\\\\":true,\\\\\\\"descriptionPos\\\\\\\":17,\\\\\\\"directEdit\\\\\\\":0,\\\\\\\"fieldColorTarget\\\\\\\":0,\\\\\\\"textDrawable\\\\\\\":false}\\\",\\\"unique\\\":false,\\\"readonly\\\":false}\",\"{\\\"u\\\":\\\"T1vQNh@OVXB39Xsk#x*p\\\",\\\"tt\\\":\\\"Description\\\",\\\"type\\\":\\\"ft_string\\\",\\\"usg\\\":\\\"NOT_USAGE\\\",\\\"num\\\":3,\\\"order\\\":3,\\\"r\\\":false,\\\"stats\\\":\\\"\\\",\\\"hint\\\":\\\"\\\",\\\"cnt\\\":[{\\\"s\\\":\\\"\\\",\\\"i\\\":0}],\\\"depend\\\":\\\"\\\",\\\"disp_title\\\":true,\\\"entry_color\\\":false,\\\"show_in_table\\\":true,\\\"column_width\\\":100,\\\"week_event\\\":0,\\\"autofill\\\":\\\"\\\",\\\"card_align\\\":0,\\\"json_options\\\":\\\"\\\",\\\"unique\\\":false,\\\"readonly\\\":false}\"],\"maxObjects\":2147483647,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"+tOdk+t606b#tHd++]Y&","tt":"Lines subtotal","type":"ft_script","usg":"USAGE_IN_STATUS","num":91,"order":48,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"function nWc(x) {\\n    return x.toString().replace(\\\/\\\\B(?=(\\\\d{3})+(?!\\\\d))\\\/g, \\\",\\\");\\n}\\n\\nm_amount = 0;\\nfor (var m_line = 0; m_line < field(\\\"Item or Service Link\\\").length; m_line++) {\\n  m_amountLine = field(\\\"Item or Service Link\\\")[m_line].attr(\\\"Price\\\") * field(\\\"Item or Service Link\\\")[m_line].attr(\\\"Quantity\\\");\\n   m_amount = m_amountLine.toFixed(2)*1 + m_amount;\\n}\\nr = \\\"$\\\" + nWc(m_amount.toFixed(2));\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"+tOdk+t606b#tHd++]Y&","t":"+tOdk+t606b#tHd++]Y&"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":2,\\\"rules\\\":[{\\\"color\\\":-16738680,\\\"rule\\\":{\\\"t\\\":\\\"\\\",\\\"type\\\":5,\\\"filter_class\\\":\\\"LibraryFilterString\\\",\\\"text\\\":\\\"\\\",\\\"text2\\\":\\\"\\\",\\\"conditionType\\\":7}}]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"@<XL1)c3*7ZpM3mS;5Y3","tt":"Invoice total","type":"ft_money","usg":"NOT_USAGE","num":172,"order":49,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"USD","o":"@<XL1)c3*7ZpM3mS;5Y3","t":"@<XL1)c3*7ZpM3mS;5Y3"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":2,\\\"rules\\\":[{\\\"color\\\":-16738680,\\\"rule\\\":{\\\"t\\\":5,\\\"v\\\":0,\\\"v2\\\":0}}]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"Yl&&h9*ShGUFrPcnJGLt","tt":"Date","type":"ft_date","usg":"USAGE_IN_STATUS","num":74,"order":50,"lib":"]swRkyjnJ+nGOe:nHQVj","r":true,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"Yl&&h9*ShGUFrPcnJGLt","t":"Yl&&h9*ShGUFrPcnJGLt"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"dateTimeFormats\":{\"dateFormat\":\"MMM d, yyyy\",\"dateFormatLang\":\"en_US\"},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"%rnLlPh+597uJpBglO1U","tt":"DueDate","type":"ft_date","usg":"NOT_USAGE","num":75,"order":51,"lib":"]swRkyjnJ+nGOe:nHQVj","r":true,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"%rnLlPh+597uJpBglO1U","t":"%rnLlPh+597uJpBglO1U"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"dateTimeFormats\":{\"dateFormat\":\"MMM d, yyyy\",\"dateFormatLang\":\"en_US\"},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"VIXBdxL7s(EKRx3yEh;Z","tt":"Payment Methods","type":"ft_multy_str_list","usg":"NOT_USAGE","num":102,"order":52,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"sl\":[{\"t\":\"Online ACH\",\"c\":1,\"i\":\"\",\"def\":true,\"c_text\":false,\"f\":false,\"children\":[]},{\"t\":\"Online Credit Card\",\"c\":2,\"i\":\"\",\"def\":true,\"c_text\":false,\"f\":false,\"children\":[]}],\"sort\":false}","i":0,"o":"VIXBdxL7s(EKRx3yEh;Z","t":"VIXBdxL7s(EKRx3yEh;Z"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"delimiter\":\", \",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"#FB<KE#*KES]is;@U-mJ","tt":"invoicePDF","type":"ft_file","usg":"NOT_USAGE","num":92,"order":53,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"#FB<KE#*KES]is;@U-mJ","t":"#FB<KE#*KES]is;@U-mJ"}],"depend":"[{\"template_index\":105,\"type_class\":\"com.luckydroid.droidbase7.depend.VisibleFieldDependType\",\"only_edit\":true,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"1\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"WNZsVQLW%tuQ*[nCxg0U","tt":"Invoice number","type":"ft_string","usg":"USAGE_IN_STATUS","num":73,"order":54,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"WNZsVQLW%tuQ*[nCxg0U","t":"WNZsVQLW%tuQ*[nCxg0U"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"FxIKrOx79!!By&6YJNT7","tt":"QuickBooks","type":"ft_subheader","usg":"NOT_USAGE","num":104,"order":55,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"FxIKrOx79!!By&6YJNT7","t":"FxIKrOx79!!By&6YJNT7"}],"depend":"[{\"template_index\":105,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":true,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"1\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"]KsoYmCH3HyCjOG7T:N6","tt":"qb_act_sync","type":"ft_boolean","usg":"NOT_USAGE","num":117,"order":56,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"]KsoYmCH3HyCjOG7T:N6","t":"]KsoYmCH3HyCjOG7T:N6"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"JIq:hhF2EC2VG-7Fp!E*","tt":"qb_act_dont_send","type":"ft_boolean","usg":"NOT_USAGE","num":121,"order":57,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"JIq:hhF2EC2VG-7Fp!E*","t":"JIq:hhF2EC2VG-7Fp!E*"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"(4xh1gNJVjq6YH0QTJ*a","tt":"qb_id","type":"ft_string","usg":"NOT_USAGE","num":88,"order":58,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"(4xh1gNJVjq6YH0QTJ*a","t":"(4xh1gNJVjq6YH0QTJ*a"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"&HiiAd8:Z1g[Qz9KE[m#","tt":"qb_state_error","type":"ft_boolean","usg":"NOT_USAGE","num":87,"order":59,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"&HiiAd8:Z1g[Qz9KE[m#","t":"&HiiAd8:Z1g[Qz9KE[m#"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"W)cd[5XVpw*PjBl&wT%v","tt":"qb_need_to_send","type":"ft_boolean","usg":"NOT_USAGE","num":115,"order":60,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"W)cd[5XVpw*PjBl&wT%v","t":"W)cd[5XVpw*PjBl&wT%v"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"KU8AzITUZpl(cFZG)X#y","tt":"qb_response","type":"ft_string","usg":"NOT_USAGE","num":94,"order":61,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"KU8AzITUZpl(cFZG)X#y","t":"KU8AzITUZpl(cFZG)X#y"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":12,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":true},{"u":"WO5[>W3Mt;UtQPV#Fj*#","tt":"hide_fields_when_editing","type":"ft_checkboxes","usg":"NOT_USAGE","num":105,"order":62,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"sl\":[{\"t\":\"Yes\",\"c\":1,\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]}],\"sort\":false}","i":0,"o":"WO5[>W3Mt;UtQPV#Fj*#","t":"WO5[>W3Mt;UtQPV#Fj*#"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"delimiter\":\", \",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":true},{"u":"O@WUBT[FJ8bZKK(EFK!A","tt":"intuit_tid","type":"ft_string","usg":"NOT_USAGE","num":116,"order":63,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"O@WUBT[FJ8bZKK(EFK!A","t":"O@WUBT[FJ8bZKK(EFK!A"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":12,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Qe-;Z[HgmVLauSPo948<","tt":"qb_sent","type":"ft_boolean","usg":"NOT_USAGE","num":118,"order":64,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"Qe-;Z[HgmVLauSPo948<","t":"Qe-;Z[HgmVLauSPo948<"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"&m2IQ1]BLy]vLWPk1x))","tt":"Invoice create or update status","type":"ft_script","usg":"USAGE_IN_HINT","num":123,"order":65,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"let inv \\u003d field(\\\"qb_id\\\") !\\u003d \\\"\\\";\\nlet est \\u003d field(\\\"qb_estimate_id\\\") !\\u003d \\\"\\\";\\n\\nif (field(\\\"qb_act_sync\\\"))\\n    inv ? \\\"Invoice: update\\\" : \\\"Invoice: create\\\";\\nelse if (!inv \\u0026\\u0026 field(\\\"qb_estimate_act_sync\\\"))\\n    est ? \\\"Estimate: update\\\" : \\\"Estimate: create\\\";\\nelse\\n    \\\" \\\";\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"&m2IQ1]BLy]vLWPk1x))","t":"&m2IQ1]BLy]vLWPk1x))"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" \\n\",\"textDrawable\":false}","unique":false,"readonly":false},{"u":"WmjXxMQ;cy&NRjLdSUos","tt":"Invoice sending status","type":"ft_script","usg":"USAGE_IN_HINT","num":122,"order":66,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"let inv \\u003d field(\\\"qb_id\\\") !\\u003d \\\"\\\";\\nlet estCtx \\u003d !inv \\u0026\\u0026 !field(\\\"qb_act_sync\\\")\\n    \\u0026\\u0026 (field(\\\"qb_estimate_id\\\") !\\u003d \\\"\\\" || field(\\\"qb_estimate_act_sync\\\"));\\n\\nif (estCtx) {\\n    let pending \\u003d field(\\\"qb_estimate_act_sync\\\") || field(\\\"qb_estimate_need_to_send\\\");\\n    if (field(\\\"qb_estimate_dont_send\\\") \\u0026\\u0026 (pending || !field(\\\"qb_estimate_sent\\\")))\\n        \\\"Email: paused\\\";\\n    else if (pending)\\n        \\\"Email: send\\\";\\n    else\\n        \\\" \\\";\\n}\\nelse if (field(\\\"qb_act_dont_send\\\"))\\n    \\\"Email: paused\\\";\\nelse if (field(\\\"qb_act_sync\\\") || field(\\\"qb_need_to_send\\\"))\\n    \\\"Email: send\\\";\\nelse\\n    \\\" \\\";\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"WmjXxMQ;cy&NRjLdSUos","t":"WmjXxMQ;cy&NRjLdSUos"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" \\n\",\"textDrawable\":false}","unique":false,"readonly":false},{"u":"KvoHm)EWfqVIcTzB#)o2","tt":"qb_estimate_id","type":"ft_string","usg":"NOT_USAGE","num":153,"order":67,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"KvoHm)EWfqVIcTzB#)o2","t":"KvoHm)EWfqVIcTzB#)o2"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"SngQ<Ln3aqz*TD)(SJIB","tt":"qb_estimate_act_sync","type":"ft_boolean","usg":"NOT_USAGE","num":154,"order":68,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"SngQ<Ln3aqz*TD)(SJIB","t":"SngQ<Ln3aqz*TD)(SJIB"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":")u4!IexOZyaq5:KpcD<)","tt":"qb_estimate_need_to_send","type":"ft_boolean","usg":"NOT_USAGE","num":155,"order":69,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":")u4!IexOZyaq5:KpcD<)","t":")u4!IexOZyaq5:KpcD<)"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Y+q6n%J0T:%gKs-QkC:&","tt":"qb_estimate_dont_send","type":"ft_boolean","usg":"NOT_USAGE","num":158,"order":70,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"Y+q6n%J0T:%gKs-QkC:&","t":"Y+q6n%J0T:%gKs-QkC:&"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"N#;gO&1He8YvQ:kYp-Fw","tt":"qb_estimate_sent","type":"ft_boolean","usg":"NOT_USAGE","num":159,"order":71,"lib":"]swRkyjnJ+nGOe:nHQVj","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"N#;gO&1He8YvQ:kYp-Fw","t":"N#;gO&1He8YvQ:kYp-Fw"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false}],"version":26,"entry_pages":"{\"pages\":[{\"d\":true,\"f\":[1,14,95,103,124,125,126,127,128,129,130,131,132,133,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,168,160,163,157,161,165,162,166,167,164,169,170,171,173,174],\"hidden\":false,\"hide_aggr\":[\"+x#8Ifi*]snEJ\\u003er@Dw\\u003e*\"],\"inv\":[\"+x#8Ifi*]snEJ\\u003er@Dw\\u003e*\",\"M\\u003cBUHyF#:m]6W1Uemf)9\",\")IPLv!Xgw@aKPaIJ9Tx;\"],\"ml\":[],\"t\":\"Work Order\"},{\"d\":false,\"f\":[111,102,74,92,91,75,73,172],\"hidden\":false,\"hide_aggr\":[],\"inv\":[],\"ml\":[],\"t\":\"Invoice\"},{\"d\":false,\"f\":[87,88,94,104,105,115,116,117,118,121,122,123,153,154,155,158,159],\"hidden\":false,\"hide_aggr\":[],\"inv\":[],\"ml\":[],\"t\":\"Service info\"}],\"connectors\":{},\"desc_max_lines\":4,\"name_max_lines\":5,\"notes\":\"\",\"steps\":false}","title":"TT Work Orders","color":-5329234,"icon":"inline:iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAMFSURBVHic7d2\/ThRBAIDxWaOJBoszWpmYaCM5SqS1I4cv4Bv4AlQ2V1jQ2NH7BsYHcA2lnZGSy1mYmFhakHAmgn\/WwhCMosze7t4w+32\/6kiWYTi+ndsbjiMESZIk4RSpJ3DeldPZ+xDCneOPqxA+3ThYurm2VnxNOK3WGMApXk4PnhWheHTWcVUoXj9YXrq\/iDl1xQD+UE5nVd3P2Vi+mu39mO3EuzDPD\/9YrhFkOekuNPnhH8sxggupJ3AelNPZUUvjNI5o0Qzgl0upJ5AKPoByOnvT8ng\/2hyva\/gAQghrLY+X1XWAAcAZAFxWy1WsnK7GUz91dAWAMwA4A4AzALiLqScwHK5mc8HWhS6+\/8lkN\/rC0hUAzgDgDADOAOAMAM4A4AwAzgDgDADOAOCSbwXHGo3Ww\/b206hjX7373PFs2rO39zbquLLcCZubj1v\/+q4AcAYAZwBwBgCXzUVgHaO7S6mnkA1XADgDgDMAOAOAMwA4A4AzADgDgDMAOAOAi98K3tp\/GEJ4HnXseJDN+w6srNxrfczY3\/GfB64AcAYAZwBwBgBnAHAGAGcAcAYAZwBwvXxRaB2j0XrqKSSFDyD2z836yocAOAOAMwA4A4AzADgDgDMAOAOAMwC4Xu4EdvFCz66kfgGpKwCcAcAZAJwBwBkAnAHAGQCcAcAZAJwBwPVyKzj19mpOXAHgDADOAOAMAM4A4AwAzgDgDADOAOB6uRNYljuppxBtYyPt+xP0MoAu\/sVqV1JvW\/sQAGcAcAYAZwBwBgBnAHAGAGcAcAYA18udwNS7azlxBYAzADgDgDMAOAOAMwA4A4AzADgDgDMAuKLW0Vv7VdRx40H0uMPhatyYijaZ7Ebf\/3VXgC9nHvHt+62aYyqhegGMB1fOPObJ9Y\/zTkaLN881wL9XAc\/+7NQP4H+rgGd\/duZ9FvD3KuDZn6X5AjhtFfDsz1KTfYDDk5vV7aYTURrzBzAeXD65fe1DG5PR4jXdCTz07M9bsxeF\/r4KzKmqihdNx5AkSZJUw0+Lb3UKoPFdzAAAAABJRU5ErkJggg==","unique_names":false,"triggers":"[{\"enabled\":true,\"event\":\"CREATE_ENTRY\",\"historyId\":\"e5e136db-dbd9-4b89-a2d1-858b1acad400\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Fill Invoice Price and Amount in lines - EC\",\"restriction\":\"NONE\",\"script\":\"\/\/ Sorting runs in the After saving trigger.\\nfill_price_and_amount_in_lines();\"},{\"enabled\":true,\"event\":\"MODIFY_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Fill Invoice Price and Amount in lines - EU\",\"restriction\":\"NONE\",\"script\":\"tt_sort_lines(entry());\\nfill_price_and_amount_in_lines();\"},{\"enabled\":true,\"event\":\"CREATE_ENTRY\",\"historyId\":\"d0fd652b-8c9b-43f3-a87a-9c98d0e3c808\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields values and length - EC\",\"restriction\":\"NONE\",\"script\":\"if (!check_no_bundle_lines())\\n\\tcancel();\\nelse if (!check_no_negative_prices())\\n\\tcancel();\\nelse if (!check_fields_length())\\n\\tcancel();\\nelse if (!check_estimate_fields())\\n\\tcancel();\"},{\"enabled\":true,\"event\":\"MODIFY_ENTRY\",\"historyId\":\"54fba1b1-f35f-4804-b6cc-2f66a6673b77\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields values and length - EU\",\"restriction\":\"NONE\",\"script\":\"if (!check_no_bundle_lines())\\n\\tcancel();\\nelse if (!check_no_negative_prices())\\n\\tcancel();\\nelse if (!check_fields_length())\\n\\tcancel();\\nelse if (!check_estimate_fields())\\n\\tcancel();\"},{\"enabled\":true,\"event\":\"CREATE_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"AFTER_SAVE\",\"name\":\"Sort invoice lines after create\",\"restriction\":\"NONE\",\"script\":\"\/\/ Runs once the new work order has its id, so the lines can be reordered.\\n\/\/ The lines carry their Price, Quantity, Amount and Description with them.\\ntt_sort_lines(entry());\"},{\"attrJson\":\"{\\\"arguementsTemplates\\\":[]}\",\"enabled\":true,\"event\":\"ACTION\",\"historyId\":\"96b3587d-8940-4ec8-8b4d-0ced8a82ef71\",\"icon\":\"nova:cursor-touch-1.png\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"VIEW_ENTRY_CONTEXT\",\"name\":\"info message - entry\",\"restriction\":\"NONE\",\"script\":\"let _text \\u003d \\\"A work order can start as an estimate. The lines in Item or Service Link are shared: \\\" +\\n    \\\"they are the estimate before the job and the invoice after it.\\\\n\\\\n\\\" +\\n    \\\"1. Estimate: add the lines and tap Sync estimate in the Estimate block. MQSync creates the estimate in \\\" +\\n    \\\"QuickBooks and attaches its PDF here. QuickBooks emails it to the customer on the next run, \\\" +\\n    \\\"unless you tap Pause email. Estimate status shows where it is.\\\\n\\\\n\\\" +\\n    \\\"2. Acceptance: the customer signs in Customer signature, or tick Estimate accepted. Either way, \\\" +\\n    \\\"enter the name in Accepted by. QuickBooks marks the estimate Accepted.\\\\n\\\\n\\\" +\\n    \\\"3. Invoice: when the job is done, run Sync switch - create or update invoice. \\\" +\\n    \\\"The invoice is created from the same lines and linked to the estimate. After that the estimate \\\" +\\n    \\\"can no longer change.\\\\n\\\\n\\\" +\\n    \\\"Price: leave blank to use the product\\u0027s default UnitPrice from the Items library. Enter 0 for a \\\" +\\n    \\\"free line.\\\\n\\\\nLine amounts and the total are calculated automatically when you save.\\\";\\n\\ndialog_message(_text);\"},{\"attrJson\":\"{\\\"arguementsTemplates\\\":[]}\",\"enabled\":true,\"event\":\"ACTION\",\"icon\":\"nova:video-control-play.png\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"LIST_ITEM_ENTRY_CONTEXT\",\"name\":\"Sync switch - create or update invoice\",\"restriction\":\"NONE\",\"script\":\"let e \\u003d entry();\\nif (e.field(\\\"qb_act_sync\\\")\\u003d\\u003dfalse) {\\n    let customer \\u003d e.field(\\\"Customer\\\");\\n    let lines \\u003d e.field(\\\"Item or Service Link\\\");\\n    if (!customer || customer.length \\u003d\\u003d 0) {\\n        dialog_message(\\\"Pick a customer before sending the work order to QuickBooks.\\\");\\n        exit();\\n    }\\n    if (!lines || lines.length \\u003d\\u003d 0) {\\n        dialog_message(\\\"Add at least one line to Item or Service Link before sending the work order to QuickBooks.\\\");\\n        exit();\\n    }\\n    e.set(\\\"qb_act_sync\\\", true);\\n    if (e.field(\\\"qb_id\\\"))\\n\\tmessage(\\\"Invoice will be updated\\\");\\n    else\\n\\tmessage(\\\"Invoice will be created\\\");\\n}\\n\"},{\"attrJson\":\"{\\\"arguementsTemplates\\\":[]}\",\"enabled\":true,\"event\":\"ACTION\",\"historyId\":\"7d3a04e1-ad81-46a3-b5eb-7f427d32fe65\",\"icon\":\"nova:cursor-touch-1.png\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"LIBRARY_CONTEXT\",\"name\":\"info message - lib\",\"restriction\":\"NONE\",\"script\":\"let _text \\u003d \\\"Fill in the work order and its lines on the Invoice tab. The entry can be edited and saved as many times as needed.\\\\n\\\\n\\\" +\\n    \\\"Estimate (optional): open the work order and tap Sync estimate in the Estimate block. The background turns gold \\\" +\\n    \\\"until the next MQSync run creates the estimate in QuickBooks and attaches its PDF. The estimate is emailed on the \\\" +\\n    \\\"next Estimate — Send run; tap Pause email to hold it. While the customer has not answered, the background \\\" +\\n    \\\"is light blue. The customer signs in Customer signature, or tick Estimate accepted; enter the name in Accepted by. \\\" +\\n    \\\"Once the estimate is accepted, the background turns lavender until the invoice is created.\\\\n\\\\n\\\" +\\n    \\\"Invoice: when ready, tap ▶ to flag the entry for QuickBooks. The background turns gold. Sync the library to \\\" +\\n    \\\"the cloud and the MQSync task run will create the invoice in QuickBooks, linked to the estimate if there is one, \\\" +\\n    \\\"and attach the generated PDF back to this entry. If the entry already has a QuickBooks invoice, MQSync updates \\\" +\\n    \\\"it in place instead, and the revised PDF is written back automatically. Lines subtotal is calculated from the \\\" +\\n    \\\"lines, before tax; Invoice total comes from QuickBooks and includes tax.\\\\n\\\\n\\\" +\\n    \\\"After a successful sync the background turns green and the left bar turns gold: the invoice is queued for email \\\" +\\n    \\\"sending and will be sent automatically by the next Invoice — Send task run.\\\\n\\\\n\\\" +\\n    \\\"To pause sending, tap 🔁. The bar turns blue and the invoice will be held. Tap 🔁 again to unpause: the bar \\\" +\\n    \\\"returns to gold and the invoice will be sent on the next task run. Once sent, the bar turns green.\\\";\\n\\ndialog_message(_text);\"},{\"attrJson\":\"{\\\"arguementsTemplates\\\":[]}\",\"enabled\":true,\"event\":\"ACTION\",\"icon\":\"nova:mail-refresh-1.png\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"LIST_ITEM_ENTRY_CONTEXT\",\"name\":\"Pause invoice sending\",\"restriction\":\"NONE\",\"script\":\"let e \\u003d entry();\\ne.set(\\\"qb_act_dont_send\\\", !e.field(\\\"qb_act_dont_send\\\"));\\nif (e.field(\\\"qb_act_dont_send\\\"))\\n    message(\\\"Invoice sending paused\\\");\\nelse\\n    message(\\\"Invoice will be sent\\\");\"},{\"enabled\":true,\"event\":\"COMMON\",\"historyId\":\"1270b2a2-0596-443c-af46-ab682b8a21b1\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"LIBRARY_CONTEXT\",\"name\":\"shared functions\",\"restriction\":\"NONE\",\"script\":\"function check_fields_length()\\n{\\n\\nlet C_MAX_LENGTHS\\t\\u003d {\\n\\t\\\"CustomerMemo\\\":\\t1000,\\n        \\\"PrivateNote\\\":      4000,\\n        \\\"ShipAddrLine1\\\": 500,\\n        \\\"ShipAddrLine2\\\": 500,\\n        \\\"ShipAddrCity\\\": 255,\\n        \\\"ShipAddrZipCode\\\": 30,\\n        \\\"ShipAddrState\\\": 255,\\n        \\\"ShipAddrCountry\\\": 255,\\n        \\\"Item or Service Link\\\": {\\n           \\\"Description\\\": {valueMaxLength: 4000, linkedEntryField: \\\"Name\\\"}\\n\\t    }\\n}\\n\\nlet C_MESS_LENGTH_EXCEEDS         \\u003d \\u0027Field \\\"$str1\\\" length should be $str2 symbols max, now it\\\\\\u0027s $str3\\u0027;\\nlet C_MESS_ATTR_LENGTH_EXCEEDS    \\u003d \\u0027Attribute \\\"$str1\\\" length for \\\"$str2\\\" entry in Invoice should be $str3 symbols max, now it\\\\\\u0027s $str4\\u0027;\\n\\nlet e \\u003d entry();\\nfor (let _key in C_MAX_LENGTHS) {\\n    \/\/ A nested object describes a link field: limits for its attributes \\n    if (typeof C_MAX_LENGTHS[_key] \\u003d\\u003d\\u003d \\\"object\\\")   {\\n    \\tfor (var _key_attr in C_MAX_LENGTHS[_key])\\t{\\n            \/\/ Check every linked entry:\\n            for (let _itemLinkNo \\u003d 0; _itemLinkNo \\u003c e.field(_key).length; _itemLinkNo++)\\t{\\n                let _attribute_value \\u003d e.field(_key)[_itemLinkNo].attr(_key_attr);\\n                if ((_attribute_value !\\u003d null) \\u0026\\u0026 (_attribute_value.length \\u003e C_MAX_LENGTHS[_key][_key_attr].valueMaxLength)) {\\n                    message(C_MESS_ATTR_LENGTH_EXCEEDS.replace(\\u0027$str1\\u0027, _key_attr)\\n\\t\\t\\t            .replace(\\u0027$str2\\u0027, e.field(_key)[_itemLinkNo].field(C_MAX_LENGTHS[_key][_key_attr].linkedEntryField))\\n\\t\\t\\t            .replace(\\u0027$str3\\u0027, C_MAX_LENGTHS[_key][_key_attr].valueMaxLength)\\n\\t\\t\\t            .replace(\\u0027$str4\\u0027, _attribute_value.length));\\n                    return false;\\n                }\\n\\t        }\\n\\t    }\\n    }\\n    else\\n    if (e.field(_key).length \\u003e C_MAX_LENGTHS[_key]) {\\n        message(C_MESS_LENGTH_EXCEEDS.replace(\\u0027$str1\\u0027, _key).replace(\\u0027$str2\\u0027, C_MAX_LENGTHS[_key]).replace(\\u0027$str3\\u0027, e.field(_key).length));\\n        return false;\\n    }\\n}\\nreturn true;\\n\\n}\\n\\n\\n\\nfunction fill_price_and_amount_in_lines()\\n{\\nlet lines \\u003d entry().field(\\\"Item or Service Link\\\");\\nfor (let i \\u003d 0; i \\u003c lines.length; i++) {\\n\\tlet p \\u003d lines[i].attr(\\\"Price\\\");\\n\\tif (p \\u003d\\u003d\\u003d null || p \\u003d\\u003d\\u003d undefined || p \\u003d\\u003d\\u003d \\\"\\\")\\n\\t\\tlines[i].setAttr(\\\"Price\\\", lines[i].field(\\u0027UnitPrice\\u0027));\\n\\tlines[i].setAttr(\\\"Amount\\\", lines[i].attr(\\\"Quantity\\\") * lines[i].attr(\\\"Price\\\"));\\n\\t}\\nreturn;\\n}\\n\\nfunction check_no_negative_prices()\\n{\\nlet lines \\u003d entry().field(\\\"Item or Service Link\\\");\\nlet bad \\u003d [];\\nfor (let i \\u003d 0; i \\u003c lines.length; i++) {\\n\\tlet p \\u003d lines[i].attr(\\\"Price\\\");\\n\\tif (p !\\u003d\\u003d null \\u0026\\u0026 p !\\u003d\\u003d undefined \\u0026\\u0026 p !\\u003d\\u003d \\\"\\\" \\u0026\\u0026 p \\u003c 0)\\n\\t\\tbad.push(lines[i].field(\\\"Name\\\"));\\n\\t}\\nif (bad.length \\u003d\\u003d\\u003d 0)\\n\\treturn true;\\ndialog_message(\\u0027Can not save: the price of \\\"\\u0027 + bad.join(\\u0027\\\", \\\"\\u0027) + \\u0027\\\" is negative.\\\\n\\\\n\\u0027 +\\n\\t\\u0027Enter 0 for a free line, or leave the price blank to use the product\\\\\\u0027s UnitPrice.\\u0027);\\nreturn false;\\n}\\n\\n\/\/ Button \\\"Sync estimate\\\": turn the estimate switch on. Only MQSync turns it\\n\/\/ off, after the run, so the field never has two writers.\\nfunction est_sync_switch() {\\n    let e \\u003d entry();\\n\\n    if (e.field(\\\"qb_id\\\")) {\\n        dialog_message(\\\"This work order already has an invoice in QuickBooks, so its estimate \\\" +\\n            \\\"can no longer change.\\\\n\\\\nChange the lines and update the invoice instead.\\\");\\n        return;\\n    }\\n\\n    if (e.field(\\\"qb_estimate_act_sync\\\")) {\\n        message(\\\"Estimate is waiting for the next MQSync run\\\");\\n        return;\\n    }\\n\\n    let customer \\u003d e.field(\\\"Customer\\\");\\n    let lines \\u003d e.field(\\\"Item or Service Link\\\");\\n    if (!customer || customer.length \\u003d\\u003d 0) {\\n        dialog_message(\\\"Pick a customer before sending the estimate to QuickBooks.\\\");\\n        return;\\n    }\\n    if (!lines || lines.length \\u003d\\u003d 0) {\\n        dialog_message(\\\"Add at least one line to Item or Service Link before sending the estimate to QuickBooks.\\\");\\n        return;\\n    }\\n    if (e.field(\\\"qb_act_sync\\\")) {\\n        dialog_message(\\\"The invoice switch is on: MQSync creates the invoice on the next run, \\\" +\\n            \\\"so this work order goes to QuickBooks as an invoice, not an estimate.\\\");\\n        return;\\n    }\\n\\n    e.set(\\\"qb_estimate_act_sync\\\", true);\\n    \/\/ Signed before the estimate was started (\\\"agreed on the spot\\\"): the\\n    \/\/ signature accepts it, provided the signer\\u0027s name is there. Done here\\n    \/\/ because a change made by a button may not run the Before saving trigger.\\n    if (!e.field(\\\"Estimate accepted\\\") \\u0026\\u0026 has_value(e.field(\\\"Customer signature\\\"))) {\\n        if (String(e.field(\\\"Accepted by\\\") || \\\"\\\").trim()) {\\n            e.set(\\\"Estimate accepted\\\", true);\\n            if (!e.field(\\\"Accepted date\\\"))\\n                e.set(\\\"Accepted date\\\", new Date());\\n        } else {\\n            dialog_message(\\\"The estimate will be sent to QuickBooks. It is signed, but Accepted by is empty.\\\\n\\\\n\\\" +\\n                \\\"Open the work order, enter the name of the person who signed in Accepted by and save: \\\" +\\n                \\\"the estimate is then marked accepted.\\\");\\n            return;\\n        }\\n    }\\n    if (e.field(\\\"qb_estimate_id\\\"))\\n        message(\\\"Estimate will be updated\\\");\\n    else\\n        message(\\\"Estimate will be created\\\");\\n}\\n\\n\/\/ Button \\\"Pause email\\\": hold the estimate email, or release it. Visible at all\\n\/\/ times: an edited estimate is emailed again in the same run that updates it,\\n\/\/ so the pause has to be reachable after the first send too.\\nfunction est_pause_email() {\\n    let e \\u003d entry();\\n    if (e.field(\\\"qb_id\\\")) {\\n        dialog_message(\\\"This work order already has an invoice, so its estimate is no longer emailed.\\\");\\n        return;\\n    }\\n    e.set(\\\"qb_estimate_dont_send\\\", !e.field(\\\"qb_estimate_dont_send\\\"));\\n    if (e.field(\\\"qb_estimate_dont_send\\\"))\\n        message(e.field(\\\"qb_estimate_sent\\\") ? \\\"The next estimate email will be held\\\" : \\\"Estimate email paused\\\");\\n    else\\n        message(\\\"Estimate will be emailed\\\");\\n}\\n\\n\/\/ Estimate rules checked on every save. Returns false to refuse the save.\\n\/\/ Also accepts the estimate automatically when the customer has signed.\\nfunction check_estimate_fields() {\\n    let e \\u003d entry();\\n    let hasInvoice  \\u003d !!e.field(\\\"qb_id\\\");\\n    let hasEstimate \\u003d !!e.field(\\\"qb_estimate_id\\\");\\n    let estSwitch   \\u003d !!e.field(\\\"qb_estimate_act_sync\\\");\\n\\n    \/\/ An invoiced work order may still carry the estimate switch for a moment:\\n    \/\/ MQSync turns it off in the same run that writes the invoice back.\\n\\n    \/\/ Acceptance from the signature. Only while there is (or is about to be) an\\n    \/\/ estimate and no invoice yet: a signature on an invoice-only work order, or\\n    \/\/ one given after the invoice (a sign-off of the finished job), changes\\n    \/\/ nothing. The signer\\u0027s name is required: without it the save is refused,\\n    \/\/ so the technician fills Accepted by while the customer is still there.\\n    if (!e.field(\\\"Estimate accepted\\\") \\u0026\\u0026 !hasInvoice \\u0026\\u0026 (hasEstimate || estSwitch)\\n            \\u0026\\u0026 has_value(e.field(\\\"Customer signature\\\"))) {\\n        if (!String(e.field(\\\"Accepted by\\\") || \\\"\\\").trim()) {\\n            dialog_message(\\\"Can not save: the estimate is signed, but Accepted by is empty.\\\\n\\\\n\\\" +\\n                \\\"Enter the name of the person who signed, then save again.\\\");\\n            return false;\\n        }\\n        e.set(\\\"Estimate accepted\\\", true);\\n        if (!e.field(\\\"Accepted date\\\"))\\n            e.set(\\\"Accepted date\\\", new Date());\\n    }\\n\\n    \/\/ Accepted without any estimate: a real mistake, refuse.\\n    if (e.field(\\\"Estimate accepted\\\") \\u0026\\u0026 !hasEstimate \\u0026\\u0026 !estSwitch) {\\n        dialog_message(\\\"Can not save: Estimate accepted is on, but this work order has no estimate.\\\\n\\\\n\\\" +\\n            \\\"Tap Sync estimate first, or turn Estimate accepted off.\\\");\\n        return false;\\n    }\\n\\n    \/\/ Estimate accepted ticked by hand in the edit card (a Boolean field can not\\n    \/\/ be made read-only there): the same rules as the signature.\\n    \/\/ A name is required; the date is filled when empty. Not checked once the\\n    \/\/ work order has an invoice, so an invoiced entry is never locked.\\n    if (e.field(\\\"Estimate accepted\\\") \\u0026\\u0026 !hasInvoice) {\\n        if (!String(e.field(\\\"Accepted by\\\") || \\\"\\\").trim()) {\\n            dialog_message(\\\"Can not save: Estimate accepted is on, but Accepted by is empty.\\\\n\\\\n\\\" +\\n                \\\"Enter the name of the person who accepted the estimate, or turn Estimate accepted off.\\\");\\n            return false;\\n        }\\n        if (!e.field(\\\"Accepted date\\\"))\\n            e.set(\\\"Accepted date\\\", new Date());\\n    }\\n\\n    \/\/ Estimate accepted turned off after an acceptance: Accepted date is filled\\n    \/\/ only when the estimate is accepted. MQSync sends the acceptance to\\n    \/\/ QuickBooks once and never takes it back, so say so, once.\\n    if (!e.field(\\\"Estimate accepted\\\") \\u0026\\u0026 !hasInvoice \\u0026\\u0026 hasEstimate \\u0026\\u0026 e.field(\\\"Accepted date\\\")) {\\n        e.set(\\\"Accepted date\\\", null);\\n        dialog_message(\\\"Estimate accepted is off. If MQSync has already sent the acceptance, \\\" +\\n            \\\"QuickBooks still shows the estimate as accepted: MQSync does not undo it.\\\\n\\\\n\\\" +\\n            \\\"To change it, open the estimate in QuickBooks.\\\");\\n    }\\n    return true;\\n}\\n\\n\/\/ True when a field has a value. An empty Signature field returns the\\n\/\/ string \\\"[]\\\", so JSON-like text is checked by its content.\\nfunction has_value(v) {\\n    if (v \\u003d\\u003d\\u003d null || v \\u003d\\u003d\\u003d undefined) return false;\\n    if (Object.prototype.toString.call(v) \\u003d\\u003d\\u003d \\\"[object Array]\\\") return v.length \\u003e 0;\\n    let s \\u003d String(v).trim();\\n    if (s \\u003d\\u003d\\u003d \\\"\\\" || s \\u003d\\u003d\\u003d \\\"[]\\\" || s \\u003d\\u003d\\u003d \\\"{}\\\" || s \\u003d\\u003d\\u003d \\\"null\\\" || s \\u003d\\u003d\\u003d \\\"undefined\\\") return false;\\n    if (s.charAt(0) \\u003d\\u003d\\u003d \\\"[\\\" || s.charAt(0) \\u003d\\u003d\\u003d \\\"{\\\") {\\n        try {\\n            let parsed \\u003d JSON.parse(s);\\n            if (Object.prototype.toString.call(parsed) \\u003d\\u003d\\u003d \\\"[object Array]\\\") return parsed.length \\u003e 0;\\n            if (parsed \\u0026\\u0026 typeof parsed \\u003d\\u003d\\u003d \\\"object\\\") return Object.keys(parsed).length \\u003e 0;\\n        } catch (err) {\\n            \/\/ Not JSON after all: treat the text itself as the value.\\n        }\\n    }\\n    return true;\\n}\"},{\"enabled\":true,\"event\":\"COMMON\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"LIBRARY_CONTEXT\",\"name\":\"dialog_message\",\"restriction\":\"NONE\",\"script\":\"function dialog_message(_text) {\\n    var _dialog \\u003d dialog();\\n    _dialog.text(_text)\\n        .positiveButton(\\\"OK\\\", () \\u003d\\u003e {return true})\\n        .show();\\n}\"},{\"enabled\":true,\"event\":\"COMMON\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"LIBRARY_CONTEXT\",\"name\":\"check_no_bundle_lines\",\"restriction\":\"NONE\",\"script\":\"\/\/ Blocks saving a work order that links a QuickBooks bundle (ItemType \\u003d \\\"Group\\\").\\n\/\/ Bundles can\\u0027t be sent as invoice lines — QuickBooks rejects the whole invoice.\\n\\nlet BUNDLE_GUARD_LINK_FIELD \\u003d \\\"Item or Service Link\\\";\\n\\nfunction check_no_bundle_lines() {\\n    let links \\u003d entry().field(BUNDLE_GUARD_LINK_FIELD);\\n    if (!links || links.length \\u003d\\u003d\\u003d 0) {\\n        return true;\\n    }\\n\\n    let bundles \\u003d [];\\n    for (let i \\u003d 0; i \\u003c links.length; i++) {\\n        let item \\u003d links[i];\\n        if (!item) {\\n            continue;\\n        }\\n\\n        let type \\u003d item.field(\\\"ItemType\\\");\\n        if (Object.prototype.toString.call(type) \\u003d\\u003d\\u003d \\\"[object Array]\\\") {\\n            type \\u003d type.length ? type[0] : \\\"\\\";\\n        }\\n        if (String(type) \\u003d\\u003d\\u003d \\\"Group\\\") {\\n            bundles.push(item.field(\\\"Name\\\"));\\n        }\\n    }\\n\\n    if (bundles.length \\u003d\\u003d\\u003d 0) {\\n        return true;\\n    }\\n\\n    dialog_message(\\n        \\u0027Can not save: \\\"\\u0027 + bundles.join(\\u0027\\\", \\\"\\u0027) +\\n        (bundles.length \\u003d\\u003d\\u003d 1 ? \\u0027\\\" is a bundle.\\u0027 : \\u0027\\\" are bundles.\\u0027) +\\n        \\u0027\\\\n\\\\nBundles can not be added to a work order — add the individual \\u0027 +\\n        \\u0027products or services from the bundle instead.\\u0027\\n\\t);\\n    return false;\\n}\"},{\"enabled\":true,\"event\":\"COMMON\",\"historyId\":\"dd9dd58b-2a8b-482d-ade9-4dcbd431563f\",\"jsLibs\":[\"moment.min.js\"],\"modifiedTime\":0,\"moment\":\"LIBRARY_CONTEXT\",\"name\":\"Time \\u0026 Travel\",\"restriction\":\"NONE\",\"script\":\"\/\/ ── Settings ─────────────────────────────────────────────────────────────\\n\/\/ Google Maps API key for \\\"Route from office\\\". Leave empty if you don\\u0027t use it.\\n\/\/ To try it: a free Maps Demo Key, no card needed (testing only, daily limit):\\n\/\/   https:\/\/developers.google.com\/maps\/demo-key\\n\/\/ For everyday use: a standard key (needs a billing account; the monthly free\\n\/\/ usage covers a small team’s trips many times over):\\n\/\/   https:\/\/developers.google.com\/maps\/get-started\\nvar TT_GOOGLE_MAPS_KEY \\u003d \\\"\\\";\\n\/\/ true: travel time with current traffic; false: without traffic.\\n\/\/ If your key rejects traffic-aware routing, set this to false.\\nvar TT_USE_TRAFFIC \\u003d true;\\n\/\/ Items used as invoice lines, and where to find them.\\nvar TT_TRAVEL_ITEM   \\u003d \\\"Travel\\\";\\nvar TT_LABOR_ITEM    \\u003d \\\"Labor\\\";\\nvar TT_ITEMS_LIBRARY \\u003d \\\"TT Items\\\";   \/\/ change if you renamed the Items library\\nvar TT_LINE_FIELD    \\u003d \\\"Item or Service Link\\\";\\n\/\/ Field in Items that orders invoice lines: lower first, empty or 0 \\u003d middle.\\nvar TT_ORDER_FIELD   \\u003d \\\"Invoice line order\\\";\\nvar TT_ORDER_DEFAULT \\u003d 50;\\n\\n\/\/ ── Helpers ──────────────────────────────────────────────────────────────\\nfunction tt_choice(e, name) {\\n    var v \\u003d e.field(name);\\n    if (Object.prototype.toString.call(v) \\u003d\\u003d\\u003d \\\"[object Array]\\\")\\n        v \\u003d v.length ? v[0] : \\\"\\\";\\n    return String(v || \\\"\\\");\\n}\\n\\nfunction tt_hours_between(start, stop) {\\n    if (!start || !stop)\\n        return 0;\\n    var ms \\u003d Number(new Date(stop)) - Number(new Date(start));\\n    return ms \\u003e 0 ? ms \/ 3600000 : 0;\\n}\\n\\nfunction tt_round(e, hours) {\\n    var mode \\u003d tt_choice(e, \\\"Time rounding\\\");\\n    if (mode \\u003d\\u003d\\u003d \\\"15 min\\\")\\n        return Math.round(hours * 4) \/ 4;\\n    if (mode \\u003d\\u003d\\u003d \\\"Exact\\\")\\n        return Math.round(hours * 100) \/ 100;\\n    return Math.round(hours * 10) \/ 10;\\n}\\n\\nfunction tt_travel_hours(e) {\\n    var oneWay;\\n    if (tt_choice(e, \\\"Travel basis\\\") \\u003d\\u003d\\u003d \\\"From office\\\")\\n        oneWay \\u003d (Number(e.field(\\\"Office travel time\\\")) || 0) \/ 3600000;\\n    else\\n        oneWay \\u003d tt_hours_between(e.field(\\\"Travel started\\\"), e.field(\\\"Travel arrived\\\"));\\n    var trips \\u003d tt_choice(e, \\\"Travel trip\\\") \\u003d\\u003d\\u003d \\\"One way\\\" ? 1 : 2;\\n    return tt_round(e, oneWay * trips);\\n}\\n\\nfunction tt_labor_hours(e) {\\n    return tt_round(e, tt_hours_between(e.field(\\\"Work started\\\"), e.field(\\\"Work stopped\\\")));\\n}\\n\\nfunction tt_join(parts) {\\n    var out \\u003d [];\\n    for (var i \\u003d 0; i \\u003c parts.length; i++) {\\n        var p \\u003d String(parts[i] || \\\"\\\").trim();\\n        if (p)\\n            out.push(p);\\n    }\\n    return out.join(\\\", \\\");\\n}\\n\\n\/\/ Street address is required: a city alone would route to the city centre.\\nfunction tt_address(src, prefix) {\\n    if (!String(src.field(prefix + \\\"Line1\\\") || \\\"\\\").trim())\\n        return \\\"\\\";\\n    return tt_join([src.field(prefix + \\\"Line1\\\"), src.field(prefix + \\\"City\\\"),\\n                    src.field(prefix + \\\"State\\\"), src.field(prefix + \\\"ZipCode\\\"),\\n                    src.field(prefix + \\\"Country\\\")]);\\n}\\n\\n\/\/ Work order\\u0027s shipping address, then the customer\\u0027s shipping, then billing.\\nfunction tt_destination(e) {\\n    var a \\u003d tt_address(e, \\\"ShipAddr\\\");\\n    if (a)\\n        return a;\\n    var c \\u003d e.field(\\\"Customer\\\");\\n    if (!c || !c.length)\\n        return \\\"\\\";\\n    return tt_address(c[0], \\\"ShipAddr\\\") || tt_address(c[0], \\\"BillAddr\\\");\\n}\\n\\nfunction tt_time(d) {\\n    return moment(d).format(\\\"LT\\\");\\n}\\n\\nfunction tt_items_library() {\\n    var lib \\u003d libByName(TT_ITEMS_LIBRARY);\\n    if (!lib) {\\n        dialog_message(\\\"Library \\\\\\\"\\\" + TT_ITEMS_LIBRARY + \\\"\\\\\\\" not found.\\\\n\\\\n\\\" +\\n            \\\"Open the shared script \\\\\\\"Time \\u0026 Travel\\\\\\\" and set TT_ITEMS_LIBRARY to the name of your Items library.\\\");\\n        exit();\\n    }\\n    return lib;\\n}\\n\\n\/\/ Full-text search narrows the list, then the Name must match exactly;\\n\/\/ a full scan is the fallback.\\nfunction tt_find_item(itemName) {\\n    var lib \\u003d tt_items_library();\\n    var found \\u003d lib.find(itemName);\\n    for (var i \\u003d 0; i \\u003c found.length; i++)\\n        if (String(found[i].field(\\\"Name\\\") || \\\"\\\").trim() \\u003d\\u003d\\u003d itemName)\\n            return found[i];\\n    var all \\u003d lib.entries();\\n    for (var j \\u003d 0; j \\u003c all.length; j++)\\n        if (String(all[j].field(\\\"Name\\\") || \\\"\\\").trim() \\u003d\\u003d\\u003d itemName)\\n            return all[j];\\n    return null;\\n}\\n\\n\/\/ Sets Quantity on the line for itemName, adding the line if it isn\\u0027t there.\\n\/\/ Returns \\\"updated\\\", \\\"added\\\" or \\\"missing\\\".\\nfunction tt_set_line(e, itemName, hours) {\\n    var links \\u003d e.field(TT_LINE_FIELD);\\n    for (var i \\u003d 0; i \\u003c links.length; i++) {\\n        if (links[i].field(\\\"Name\\\") \\u003d\\u003d\\u003d itemName) {\\n            links[i].setAttr(\\\"Quantity\\\", hours);\\n            return \\\"updated\\\";\\n        }\\n    }\\n    var item \\u003d tt_find_item(itemName);\\n    if (!item)\\n        return \\\"missing\\\";\\n    e.link(TT_LINE_FIELD, item);\\n    links \\u003d e.field(TT_LINE_FIELD);\\n    links[links.length - 1].setAttr(\\\"Quantity\\\", hours);\\n    return \\\"added\\\";\\n}\\n\\nfunction tt_line_order(item) {\\n    var v \\u003d Number(item.field(TT_ORDER_FIELD));\\n    return v ? v : TT_ORDER_DEFAULT;\\n}\\n\\n\/\/ Reorders invoice lines by Invoice line order, keeping the user\\u0027s order among\\n\/\/ equal values. Rewrites the links only when the order actually changes.\\nvar TT_LINE_ATTRS \\u003d [\\\"Price\\\", \\\"Quantity\\\", \\\"Amount\\\", \\\"Description\\\"];\\n\\nfunction tt_sort_lines(e) {\\n    var links \\u003d e.field(TT_LINE_FIELD);\\n    if (!links || links.length \\u003c 2)\\n        return;\\n    var rows \\u003d [];\\n    for (var i \\u003d 0; i \\u003c links.length; i++) {\\n        var attrs \\u003d {};\\n        for (var a \\u003d 0; a \\u003c TT_LINE_ATTRS.length; a++)\\n            attrs[TT_LINE_ATTRS[a]] \\u003d links[i].attr(TT_LINE_ATTRS[a]);\\n        rows.push({ item: links[i], pos: i, order: tt_line_order(links[i]), attrs: attrs });\\n    }\\n    var sorted \\u003d rows.slice().sort(function (x, y) {\\n        return (x.order - y.order) || (x.pos - y.pos);\\n    });\\n    var changed \\u003d false;\\n    for (var k \\u003d 0; k \\u003c sorted.length; k++)\\n        if (sorted[k].pos !\\u003d\\u003d k)\\n            changed \\u003d true;\\n    if (!changed)\\n        return;\\n\\n    e.set(TT_LINE_FIELD, []);\\n    for (var j \\u003d 0; j \\u003c sorted.length; j++) {\\n        e.link(TT_LINE_FIELD, sorted[j].item);\\n        var now \\u003d e.field(TT_LINE_FIELD);\\n        var line \\u003d now[now.length - 1];\\n\\t\/\/ Every attribute is written, empty ones too: Memento keeps link attributes\\n\\t\/\/ by line position, so an attribute left unwritten would carry over from\\n\\t\/\/ another line.\\n\\tfor (var b \\u003d 0; b \\u003c TT_LINE_ATTRS.length; b++) {\\n            var name \\u003d TT_LINE_ATTRS[b];\\n            var v \\u003d sorted[j].attrs[name];\\n            if (v \\u003d\\u003d\\u003d undefined || v \\u003d\\u003d\\u003d null)\\n                v \\u003d name \\u003d\\u003d\\u003d \\\"Description\\\" ? \\\"\\\" : null;\\n            try {\\n                line.setAttr(name, v);\\n            } catch (x) {\\n                \/\/ A number attribute that refuses null: 0 is what an empty\\n                \/\/ Price means to fill_price_and_amount_in_lines anyway.\\n                try { line.setAttr(name, 0); } catch (y) {}\\n            }\\n        }\\n    }\\n}\"}]","scripts_permissions":"{\"fileRead\":false,\"fileWrite\":false,\"libraries\":false,\"librariesIds\":[\"PB@ApkWnxp]aToZnq#:1\"],\"librariesTitles\":{\"PB@ApkWnxp]aToZnq#:1\":\"TT Items\"},\"network\":true}","related_libraries":[{"title":"TT Customers","id":"MqjFC;g0naqBMl91m;bA","color":-3158065,"icon":"inline:iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAlwSURBVHic7Z1\/cFTVFce\/bzcUIrFJlFg0I6NtJckW2pHQOnYG6YAmhUJLaWX4zQydyThWLT9SYyjWKJl0tOggOHRIbTsdxdIwCrb82CXgiKWjRaJOGHazEUimGkCRsJLNDwib1z9CaBL2x3v33XPfW975\/JW8nHvOyd7vu\/fdt++eBzAMwzAMwzAMwzAMwzAMwziGXY2RXLtzMETVqRvwuzTJFYBmdwLD2dfU8Qdd0x4yaq8Bu0sKsmZR5pSQ6kgUwGjD9rr2IzyZvYcuIfM4QgD7T0a\/FuvFGat+NA13l4zP+khGTglZF\/k7NMyz7GdtjiM+e1uTqNJ1z73NnTHZfmOei9kz77r5glSn1V8+D+irpPoEbBeCbcED4eglACMoY5QWZMn5\/6ojuhQ\/idDxLJ7MeYI0RgJsEUAgHKX9QAdhSQTPtE+Ex9MoMZ3k2DAaeFQHVNn5A\/F0XTf\/wVaff1Fp5wP0I00clApAdecPsK+5s89Ug3XnqwDtMZpsUqBYBMqGHLs6fzCGpoOajjz0xT5XkE5yFE0HSkYAJ3Q+YDAPJ3Q+AKyLbFURhlwA\/nB0CXUMMwTC0cQ3YmyYgxOiYaGaMMQ45ewHgNbwMbz+x4345Hgo7t8vjJuK0\/c+jr6MTMWZJYF4KiB1Hgh3nAC0r1PGSEbow8PY8nS5JR9NC+uha15JGQkwPjsD8zTpN8sGIBaAPWf\/ijn3Sfd56cZ8nPjxK9L9GoJwFCBzvLe5Y65H116n8h8Pio4fTmxkNpp\/voM8zhDSUQAqz\/4Xysvw3+NNqsIBAFpnbEb3TYWqwu3A2py5FI7TXgAqzvpkhBa9pSYQ0Sig\/FawLLo7o7Z3PgAUbZ1mdwqWIBHAvnB0PYXfAYIN76Fy0UzKEKZIZxGQCEAHVlP4BfqXdrXrHqdyLwy5CKo6bqFwm1ZTQE9Xl+V1PSWkIsiILaVwm1YCeGLhD+1OISV0ItAmUHjNoHBKgYwLvsrKcixZsiCpTVnZIzh06F1LcQq2zUB4\/l5LPq5F\/6pkhwDSRADPrVgu3FbTNBw7dsSwfW3tS1d\/9vmKhWJ6Yheh6THJt5D1r0h0dpW0mAJOtR4XahcMNpjq\/Hjt\/f6dQm0LX3tAOG58NHcKQGTo93o9CAYbpMQfN+52YV9jjkn8Sl+HOwVglvz823D06PvS\/YqIIO+jP8lMwX0CMHv2e70e1Nf\/kygbMRFknT4sJ7iGkXIcDcXRAjALxZk\/HLMiuP0taY\/73yDL0WAcK4DQh+bOHFlzvhGWLye5J5MK43sQTeBYAZi546dpavdTlJf\/ypT9mMa\/ygjrrhHADFaWeqJs2vS8Ydu8o1IE4K4RwOlMn\/4D1SFJbto5UgAtTUcN265Z82vCTBxFL4VTRwpgx8ubDNsuXjyfMJPkVFTI3y2eBPcIQPXzfaIsW7bIsG3mF0Gr4dwjgOuRrE+tfcMI4JyMPIbDAlDEiO6zVl2clJHHcFgAishq+49FD5rlISQeLABFeC9+adXFPhl5DIdKAOruy7qFtdnvUbglEYDm0cmeCmbkQiKAkrtuPEjhl5EPXwO4HBZAOqBpVVSu6QSge4ULQ3gzSOtH2kLkGxa2sv0m+2l5mQyFTAClhZktom3vmT5DZipkvPnmLsO2Z+5ZSZiJOKRTgAbtpdRW1zJ7qeFi4di7l2R5bIjKyqcM2wrvESCuEUQqgJKC0Y+KtMscnWXYdvXqSpEQzBXILwJLxo++Li80T55spQ+ioFgkaecEwtEjpsu0CjB58hTqENcwa9bPDNu2zKwVC1Id0VEd2SLW2BhSHzMKhKMtAO6Q4WvBoxX426ZnDdl2dXXJCGmY3bv9pux7cr9pJVwZqiNlg37fjrU51l9YcQVLQ4w\/HF2qAVKeeIyH2Y0hqh4NN7tplLSO0GXtZlRlt4s2F5oCAuFofSAc1Sk7X4SpU0vJYziq8wEgQz+H6oiOmgtCJctMC+BK9a\/7RYKZZcPOd0zZnz37BVatonvxhuh2cSX09YVEah0bFkAgdOH7Tqr7mwi\/vx7TpskvICXS+aEF+6XnkRKTIjAkAH9T50\/g8fxbLCNrmB0FAODMmc+kna2xWEzcl8emFbAJEaTMsE7XvZqmi1VJkETh3d8VaufzFWPKFPFCDT5fMSZO\/J5QW2UFJBNhUAQpBZDd3HnZejbWeOgp49uwhnPuXDt8vmL4fMU4fTr1qwnr6t64ai\/K+YKfCreVigERJF0Gqni1mxmcUBnUCLaf\/YPp6\/s2fntTwq1WqUYAx3Q+IHY9oBpHdT6AVG8+SzgCBMJRc+\/FJeSNl1\/EO7uUVp63THvBXHw2+RG70+jnciwbVfHfpJpMALYs+YJH3kVtdYUdoclpmu+H7iUp9ZOaBF8sOaZOYLrM71Yo3NZf6VT3jEDTgoDN2fQTVwCBpuhzqhJwQ8cPR+vr7S8pq2kILTxgby7xDqoY\/mt+uQift31CHSYtaH1gI7pvISkF\/H+8+p2ozG0dftiWW1Ur5tzHnT+IO+ofuzo9kNHnWRbvsHIBuHHIN4IWu0Rbbl7XvxXvsFIBcOenRvXbR5QJgDvfOEWvTVcWS8kykLrzKypWpSzXEgjsx8qVxu4vpHqyqLx8DfbsIVzG6Tpym3fi\/Pg5dDGuQC6AtpaPpfpbvHi+7ZXB1q+vwfr1NUOOPfzwCrz99r+kxRj7\/sbrQwC\/X\/kL4baTJn0Hr776Z4nZ0LF584Yhv\/f09GD27AfR1nZK2GfR1mnk3y2QCmDLM2Jv9zpwYDduvXWs5GzUMmrUqCGVy536OBnpRWDoA\/NFLYLBhrTv\/HgEgw1CpeypVwVkAhCp9aey4rcd5Off5rj\/kUwAL5SXpTYahNM+GEoaGg6Zsh97eENqI0EcsW\/PTZ0PAJmZmcjIMH75lfvxP8hycYQA3Ehjo9W6gXIgEYB\/218M2x486Izvxd0KyTLQjADy8sZQpHANpaX3O26qqat7BfPmLTFk6+ntRt+ITOk58BRgIxMm+Azb5rTIfhVtPyyANGFk+wkSvyyANMHTS1MDgQXgclgALocF4HJYAC6HBeByWAAuhwXgclgALocF4HJYAC6HBeByWAAuJ\/7zAJq23aLfB40aBgI2FFNMQ7w9kU8BWHh7qB73EW2SevRFRZMcX1E0DdkeCn0grUr4ADwFuBwWgMthAbgcFoDLYQG4HBaAy2EBuBwWgMthATAMwzAMwzAMwzAMwzAMwzDM9c3\/AGrUrZG52OEaAAAAAElFTkSuQmCC","unique_names":false,"triggers":"[{\"enabled\":true,\"event\":\"CREATE_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields length - EC\",\"restriction\":\"NONE\",\"script\":\"if(!check_fields_length())\\n   cancel();\"},{\"enabled\":true,\"event\":\"MODIFY_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields length - EU\",\"restriction\":\"NONE\",\"script\":\"if(!check_fields_length())\\n   cancel();\"},{\"enabled\":true,\"event\":\"CREATE_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields values - EC-BSE\",\"restriction\":\"NONE\",\"script\":\"let e \\u003d entry();\\nlet parent \\u003d e.field(\\\"Parent\\\");          \/\/ linked entries; empty if none\\nlet job    \\u003d e.field(\\\"Job\\\");\\n\\nfunction check_customer_name_chars() {\\n    let NAME_FIELDS \\u003d [\\n        \\\"DisplayName\\\",\\n        \\\"Title\\\",\\n        \\\"FirstName\\\",\\n        \\\"MiddleName\\\",\\n        \\\"LastName\\\",\\n        \\\"PrintOnCheckName\\\"\\n    ];\\n\\n    let offenders \\u003d [];\\n    for (let i \\u003d 0; i \\u003c NAME_FIELDS.length; i++) {\\n        let fname \\u003d NAME_FIELDS[i];\\n        let val \\u003d e.field(fname);\\n        if (val \\u003d\\u003d\\u003d null || val \\u003d\\u003d\\u003d undefined) {\\n            continue;                       \/\/ field absent from this library\\n        }\\n        val \\u003d String(val);\\n        if (val.indexOf(\\\":\\\") !\\u003d\\u003d -1 ||\\n            val.indexOf(\\\"\\\\t\\\") !\\u003d\\u003d -1 ||\\n            val.indexOf(\\\"\\\\n\\\") !\\u003d\\u003d -1) {\\n            offenders.push(fname);\\n        }\\n    }\\n\\n    if (offenders.length \\u003d\\u003d\\u003d 0) {\\n        return true;\\n    }\\n\\n    dialog_message(\\n        \\\"Can\\u0027t save: \\\" + offenders.join(\\\", \\\") +\\n        (offenders.length \\u003d\\u003d\\u003d 1 ? \\\" contains\\\" : \\\" contain\\\") +\\n        \\\" a colon (:), tab, or line break.\\\\n\\\\n\\\" +\\n        \\\"QuickBooks doesn\\u0027t allow those characters in a customer\\u0027s name \\\" +\\n        \\\"(a colon is reserved for the parent:child hierarchy). \\\" +\\n        \\\"Remove them and save again.\\\"\\n    );\\n    return false;\\n}\\n\\n\/\/ Rejects saving a customer whose name fields contain a colon, tab, or newline.\\n\/\/ QuickBooks forbids these in all name attributes (\\\":\\\" is its parent:child\\n\/\/ hierarchy separator, so it corrupts sub-customer resolution outright).\\nif (!check_customer_name_chars()) {\\n    cancel();\\n}\\nelse {\\n    \/\/ If Parent set - this is a sub-customer\/job, check if Job \\u003d\\u003d true.\\n    let hasParent \\u003d parent \\u0026\\u0026 parent.length \\u003e 0;\\n    if (hasParent \\u0026\\u0026 !job) {\\n        message(\\\"A sub-customer\/job must have the Job field set to Yes.\\\");\\n        cancel();\\n    }\\n    \/\/ Job \\u003d true but no Parent: invalid.\\n    else if (job \\u0026\\u0026 !hasParent) {\\n        message(\\\"A sub-customer\/job must have a Parent customer set.\\\");\\n        cancel();\\n    }\\n    \/\/ BillWithParent attribute is valid only if this entity is a sub-customer\/job\\n    else if (!hasParent \\u0026\\u0026 e.field(\\\"BillWithParent\\\")) {\\n        message(\\\"BillWithParent is valid only if this entity is a sub-customer\/job.\\\");\\n        cancel();\\n        }\\n}\\n\"},{\"enabled\":true,\"event\":\"MODIFY_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields values - EU-BSE\",\"restriction\":\"NONE\",\"script\":\"let e \\u003d entry();\\nlet parent \\u003d e.field(\\\"Parent\\\");          \/\/ linked entries; empty if none\\nlet job    \\u003d e.field(\\\"Job\\\");\\n\\nfunction check_customer_name_chars() {\\n    let NAME_FIELDS \\u003d [\\n        \\\"DisplayName\\\",\\n        \\\"Title\\\",\\n        \\\"FirstName\\\",\\n        \\\"MiddleName\\\",\\n        \\\"LastName\\\",\\n        \\\"PrintOnCheckName\\\"\\n    ];\\n\\n    let offenders \\u003d [];\\n    for (let i \\u003d 0; i \\u003c NAME_FIELDS.length; i++) {\\n        let fname \\u003d NAME_FIELDS[i];\\n        let val \\u003d e.field(fname);\\n        if (val \\u003d\\u003d\\u003d null || val \\u003d\\u003d\\u003d undefined) {\\n            continue;                       \/\/ field absent from this library\\n        }\\n        val \\u003d String(val);\\n        if (val.indexOf(\\\":\\\") !\\u003d\\u003d -1 ||\\n            val.indexOf(\\\"\\\\t\\\") !\\u003d\\u003d -1 ||\\n            val.indexOf(\\\"\\\\n\\\") !\\u003d\\u003d -1) {\\n            offenders.push(fname);\\n        }\\n    }\\n\\n    if (offenders.length \\u003d\\u003d\\u003d 0) {\\n        return true;\\n    }\\n\\n    dialog_message(\\n        \\\"Can\\u0027t save: \\\" + offenders.join(\\\", \\\") +\\n        (offenders.length \\u003d\\u003d\\u003d 1 ? \\\" contains\\\" : \\\" contain\\\") +\\n        \\\" a colon (:), tab, or line break.\\\\n\\\\n\\\" +\\n        \\\"QuickBooks doesn\\u0027t allow those characters in a customer\\u0027s name \\\" +\\n        \\\"(a colon is reserved for the parent:child hierarchy). \\\" +\\n        \\\"Remove them and save again.\\\"\\n    );\\n    return false;\\n}\\n\\n\/\/ Rejects saving a customer whose name fields contain a colon, tab, or newline.\\n\/\/ QuickBooks forbids these in all name attributes (\\\":\\\" is its parent:child\\n\/\/ hierarchy separator, so it corrupts sub-customer resolution outright).\\nif (!check_customer_name_chars()) {\\n    cancel();\\n}\\nelse {\\n    \/\/ If Parent set - this is a sub-customer\/job, check if Job \\u003d\\u003d true.\\n    let hasParent \\u003d parent \\u0026\\u0026 parent.length \\u003e 0;\\n    if (hasParent \\u0026\\u0026 !job) {\\n        message(\\\"A sub-customer\/job must have the Job field set to Yes.\\\");\\n        cancel();\\n    }\\n    \/\/ Job \\u003d true but no Parent: invalid.\\n    else if (job \\u0026\\u0026 !hasParent) {\\n        message(\\\"A sub-customer\/job must have a Parent customer set.\\\");\\n        cancel();\\n    }\\n    \/\/ BillWithParent attribute is valid only if this entity is a sub-customer\/job\\n    else if (!hasParent \\u0026\\u0026 e.field(\\\"BillWithParent\\\")) {\\n        message(\\\"BillWithParent is valid only if this entity is a sub-customer\/job.\\\");\\n        cancel();\\n        }\\n}\\n\"},{\"enabled\":true,\"event\":\"COMMON\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"LIBRARY_CONTEXT\",\"name\":\"shared functions\",\"restriction\":\"NONE\",\"script\":\"\/\/ \\\"Customers\\\"\\nfunction check_fields_length()\\n{\\n\\nlet C_MAX_LENGTHS    \\u003d {\\n        \\\"DisplayName\\\": 100,\\n        \\\"Title\\\": 16,\\n        \\\"FirstName\\\": 100,\\n        \\\"MiddleName\\\": 100,\\n        \\\"LastName\\\": 100,\\n        \\\"Notes\\\": 2000,\\n        \\\"CompanyName\\\": 100,\\n        \\\"ShipAddrLine1\\\": 500,\\n        \\\"ShipAddrLine2\\\": 500,\\n        \\\"ShipAddrCity\\\": 255,\\n        \\\"ShipAddrZipCode\\\": 30,\\n        \\\"ShipAddrState\\\": 255,\\n        \\\"ShipAddrCountry\\\": 255,\\n        \\\"BillAddrLine1\\\": 500,\\n        \\\"BillAddrLine2\\\": 500,\\n        \\\"BillAddrCity\\\": 255,\\n        \\\"BillAddrZipCode\\\": 30,\\n        \\\"BillAddrState\\\": 255,\\n        \\\"BillAddrCountry\\\": 255,\\n}\\n\\nlet C_MESS_LENGTH_EXCEEDS         \\u003d \\u0027Field \\\"$str1\\\" length should be $str2 symbols max, now it\\\\\\u0027s $str3\\u0027;\\nlet C_MESS_ATTR_LENGTH_EXCEEDS    \\u003d \\u0027Attribute \\\"$str1\\\" length for \\\"$str2\\\" entry in Invoice should be $str3 symbols max, now it\\\\\\u0027s $str4\\u0027;\\n\\nlet e \\u003d entry();\\nfor (let _key in C_MAX_LENGTHS) {\\n\\t\/\/ A nested object describes a link field: limits for its attributes \\n    if (typeof C_MAX_LENGTHS[_key] \\u003d\\u003d\\u003d \\\"object\\\")   {\\n    \\tfor (var _key_attr in C_MAX_LENGTHS[_key])\\t{\\n            \/\/ Check every linked entry:\\n            for (let _itemLinkNo \\u003d 0; _itemLinkNo \\u003c e.field(_key).length; _itemLinkNo++)\\t{\\n                let _attribute_value \\u003d e.field(_key)[_itemLinkNo].attr(_key_attr);\\n                if ((_attribute_value !\\u003d null) \\u0026\\u0026 (_attribute_value.length \\u003e C_MAX_LENGTHS[_key][_key_attr].valueMaxLength)) {\\n                    message(C_MESS_ATTR_LENGTH_EXCEEDS.replace(\\u0027$str1\\u0027, _key_attr)\\n\\t\\t\\t            .replace(\\u0027$str2\\u0027, e.field(_key)[_itemLinkNo].field(C_MAX_LENGTHS[_key][_key_attr].linkedEntryField))\\n\\t\\t\\t            .replace(\\u0027$str3\\u0027, C_MAX_LENGTHS[_key][_key_attr].valueMaxLength)\\n\\t\\t\\t            .replace(\\u0027$str4\\u0027, _attribute_value.length));\\n                    return false;\\n                }\\n\\t        }\\n\\t    }\\n    }\\n    else\\n    if (e.field(_key).length \\u003e C_MAX_LENGTHS[_key]) {\\n        message(C_MESS_LENGTH_EXCEEDS.replace(\\u0027$str1\\u0027, _key).replace(\\u0027$str2\\u0027, C_MAX_LENGTHS[_key]).replace(\\u0027$str3\\u0027, e.field(_key).length));\\n        return false;\\n    }\\n}\\nreturn true;\\n\\n}\\n\\n\"},{\"enabled\":true,\"event\":\"COMMON\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"LIBRARY_CONTEXT\",\"name\":\"dialog_message\",\"restriction\":\"NONE\",\"script\":\"function dialog_message(_text) {\\n    var _dialog \\u003d dialog();\\n    _dialog.text(_text)\\n        .positiveButton(\\\"OK\\\", () \\u003d\\u003e {return true})\\n        .show();\\n}\"}]","entry_pages":"{\"pages\":[{\"d\":true,\"f\":[0,1,2,52,74,75,76,77,78,79,93,99,101,102,112,114,119,124],\"hidden\":false,\"hide_aggr\":[\"TWZKhb;(:KDjR\\u003e*DegG9\",\"DwiKak@2PB\\u003c1*jXG*6!p\",\"Uwu3gL:i9S[b)q-8*O2*\",\"MDoYVAk3TjmCcKoFY:AT\",\"X4S6BLvXQJ5mQ%n:Otel\",\"@6arsg%-QRA@DJZu)l\\u003e\\u003c\",\"Kz7oy3P]%+)qe]+Xvob[\",\"C!aMy3VBcF]WOvI17DCn\",\"ROJb2k;w80rJqYcjJrN3\"],\"inv\":[\"XA8w3cE%)P*[@K@kDjVA\",\"X4S6BLvXQJ5mQ%n:Otel\",\"Uwu3gL:i9S[b)q-8*O2*\",\"@6arsg%-QRA@DJZu)l\\u003e\\u003c\",\"MDoYVAk3TjmCcKoFY:AT\",\"TWZKhb;(:KDjR\\u003e*DegG9\",\"DwiKak@2PB\\u003c1*jXG*6!p\",\"Kz7oy3P]%+)qe]+Xvob[\",\"C!aMy3VBcF]WOvI17DCn\",\"ROJb2k;w80rJqYcjJrN3\"],\"ml\":[\"_index_{\\\"i\\\":1,\\\"t\\\":\\\"TT Customers\\\"}\",\"_index_{\\\"i\\\":0,\\\"t\\\":\\\"TT Work Orders\\\"}\"],\"t\":\"Customer Info\"},{\"d\":false,\"f\":[103,104,82,105,81,83,84,96,106,107,108,109,110,111,120,121,122,123],\"hidden\":false,\"hide_aggr\":[],\"inv\":[],\"ml\":[],\"t\":\"Addresses\"},{\"d\":false,\"f\":[],\"hidden\":false,\"hide_aggr\":[\"[dqLy7W8rPGkSs4Uw*AQ\"],\"inv\":[\"[dqLy7W8rPGkSs4Uw*AQ\"],\"ml\":[],\"t\":\"Work Orders\"},{\"d\":false,\"f\":[86,87,92,94,95,98,100],\"hidden\":false,\"hide_aggr\":[],\"inv\":[],\"ml\":[],\"t\":\"Service info\"}],\"connectors\":{},\"desc_max_lines\":2,\"name_max_lines\":1,\"notes\":\"\",\"steps\":false}","templates":[{"u":">p[ozFPq*E#@7zpyBj*P","tt":"DisplayName","type":"ft_string","usg":"USAGE_IN_TITLE","num":0,"order":0,"lib":"MqjFC;g0naqBMl91m;bA","r":true,"stats":"","hint":"Enter customer's name","cnt":[{"s":"","i":2,"o":">p[ozFPq*E#@7zpyBj*P","t":">p[ozFPq*E#@7zpyBj*P"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" # \",\"textDrawable\":false}","unique":true,"readonly":false},{"u":"WvE*&F;EFstH4&o0*yD]","tt":"PrintOnCheckName","type":"ft_string","usg":"NOT_USAGE","num":124,"order":1,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"WvE*&F;EFstH4&o0*yD]","t":"WvE*&F;EFstH4&o0*yD]"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Mm6dPUaOg**r]a1BSI[q","tt":"Notes","type":"ft_string","usg":"NOT_USAGE","num":52,"order":2,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"Mm6dPUaOg**r]a1BSI[q","t":"Mm6dPUaOg**r]a1BSI[q"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"X)*<X)P+wEabIK!Gy*V+","tt":"Phone","type":"ft_phone","usg":"NOT_USAGE","num":1,"order":3,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"Enter customer's phone number","cnt":[{"s":"","o":"X)*<X)P+wEabIK!Gy*V+","t":"X)*<X)P+wEabIK!Gy*V+"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"@nvOy6gCH;JlFYj7(Bkv","tt":"Mobile","type":"ft_phone","usg":"NOT_USAGE","num":114,"order":4,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"Enter customer's mobile number","cnt":[{"s":"","o":"@nvOy6gCH;JlFYj7(Bkv","t":"@nvOy6gCH;JlFYj7(Bkv"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"UPe*V;;S;er-o#Xo;M16","tt":"E-mail","type":"ft_email","usg":"NOT_USAGE","num":2,"order":5,"lib":"MqjFC;g0naqBMl91m;bA","r":true,"stats":"","hint":"Enter customer's e-mail","cnt":[{"s":"","o":"UPe*V;;S;er-o#Xo;M16","t":"UPe*V;;S;er-o#Xo;M16"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"HkDJylHiYn2vjJIisL0","tt":"Details","type":"ft_subheader","usg":"NOT_USAGE","num":74,"order":6,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"HkDJylHiYn2vjJIisL0","t":"HkDJylHiYn2vjJIisL0"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"ZCC885+Wu9+%D(O([rRh","tt":"CompanyName","type":"ft_string","usg":"NOT_USAGE","num":75,"order":7,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"ZCC885+Wu9+%D(O([rRh","t":"ZCC885+Wu9+%D(O([rRh"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"S)<J*rvG]VQ*8ST1Diqv","tt":"Title","type":"ft_string","usg":"NOT_USAGE","num":76,"order":8,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"S)<J*rvG]VQ*8ST1Diqv","t":"S)<J*rvG]VQ*8ST1Diqv"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"DXhFB)>(Je25-g:csk))","tt":"FirstName","type":"ft_string","usg":"NOT_USAGE","num":77,"order":9,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"DXhFB)>(Je25-g:csk))","t":"DXhFB)>(Je25-g:csk))"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"&@5[C;k[6(%hwqEC[60T","tt":"MiddleName","type":"ft_string","usg":"NOT_USAGE","num":78,"order":10,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"&@5[C;k[6(%hwqEC[60T","t":"&@5[C;k[6(%hwqEC[60T"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Ix4o>10YDDKIA;Mz+-ZN","tt":"LastName","type":"ft_string","usg":"NOT_USAGE","num":79,"order":11,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"Ix4o>10YDDKIA;Mz+-ZN","t":"Ix4o>10YDDKIA;Mz+-ZN"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"IY4[xr#6eOi)u%Yf5rp(","tt":"Parent","type":"ft_lib_entry","usg":"NOT_USAGE","num":101,"order":12,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"_index_{\"i\":1,\"t\":\"TT Customers\"}","i":0,"o":"IY4[xr#6eOi)u%Yf5rp(","t":"IY4[xr#6eOi)u%Yf5rp("}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"compactEditMode\":false,\"compactViewMode\":false,\"defaultEntriesIds\":[],\"relationType\":1,\"attrJsonTemplates\":[],\"maxObjects\":2147483647,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":">@)n0Hqk3)RIuftdA7ED","tt":"Job","type":"ft_boolean","usg":"NOT_USAGE","num":102,"order":13,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":">@)n0Hqk3)RIuftdA7ED","t":">@)n0Hqk3)RIuftdA7ED"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"I5luQJw>7@FhtY1tQftH","tt":"BillWithParent","type":"ft_boolean","usg":"NOT_USAGE","num":112,"order":14,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"I5luQJw>7@FhtY1tQftH","t":"I5luQJw>7@FhtY1tQftH"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"N;8RWO75>Anf0Hqxo:c9","tt":"IsProject","type":"ft_boolean","usg":"NOT_USAGE","num":119,"order":15,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"N;8RWO75>Anf0Hqxo:c9","t":"N;8RWO75>Anf0Hqxo:c9"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"description\":\"\\\"IsProject\\\" is QuickBooks→Memento only. Edit in Memento has no effect.\",\"descriptionPos\":1,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"*+L&*OJSRpI*u7No3fAr","tt":"JS Background Color","type":"ft_script","usg":"HIDDEN","num":93,"order":16,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"if (field(\\\"qb_active\\\") == false && field(\\\"qb_id\\\"))\\n    \\\"#A6A6A6\\\"\\nelse if (field(\\\"qb_state_error\\\") == true)\\n    \\\"#eac4d5\\\"\\nelse if (field(\\\"qb_id\\\"))\\n    \\\"#d6eadf\\\"\\nelse \\n   \\\"#f7d794\\\"\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"*+L&*OJSRpI*u7No3fAr","t":"*+L&*OJSRpI*u7No3fAr"}],"depend":"","disp_title":true,"entry_color":true,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":1,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"SA9nKHZ9<+Qhoi3I&9xg","tt":"thumbnail image","type":"ft_img","usg":"USAGE_IN_ICON","num":99,"order":17,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"SA9nKHZ9<+Qhoi3I&9xg","t":"SA9nKHZ9<+Qhoi3I&9xg"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"captureMaxHeight\":0,\"captureMaxWidth\":0,\"fileNamePattern\":\"TIME\",\"orientation\":1,\"placeholder\":{\"field\":0,\"fieldMaxLength\":5,\"letters\":\"N\/A\",\"shape\":0,\"type\":1},\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"EReVL[Yb>ky*Dh>DV;dk","tt":"Shipping Address","type":"ft_subheader","usg":"NOT_USAGE","num":103,"order":18,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"EReVL[Yb>ky*Dh>DV;dk","t":"EReVL[Yb>ky*Dh>DV;dk"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"FLIvdB]m4;l[P4n+Qs;%","tt":"ShipAddrLine1","type":"ft_string","usg":"NOT_USAGE","num":106,"order":19,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"FLIvdB]m4;l[P4n+Qs;%","t":"FLIvdB]m4;l[P4n+Qs;%"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Ub8mBP6CmfRq!JkJqv9H","tt":"ShipAddrLine2","type":"ft_string","usg":"NOT_USAGE","num":107,"order":20,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"Ub8mBP6CmfRq!JkJqv9H","t":"Ub8mBP6CmfRq!JkJqv9H"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"TJxvH!Oc8T-gmSSWsXof","tt":"ShipAddrCity","type":"ft_string","usg":"NOT_USAGE","num":108,"order":21,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"TJxvH!Oc8T-gmSSWsXof","t":"TJxvH!Oc8T-gmSSWsXof"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"HSVV0!Te]z[;Vo[<;rA]","tt":"ShipAddrZipCode","type":"ft_string","usg":"NOT_USAGE","num":109,"order":22,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"HSVV0!Te]z[;Vo[<;rA]","t":"HSVV0!Te]z[;Vo[<;rA]"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"])+!v-h:W(Wt]i>Qk>*]","tt":"ShipAddrState","type":"ft_string","usg":"NOT_USAGE","num":110,"order":23,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"])+!v-h:W(Wt]i>Qk>*]","t":"])+!v-h:W(Wt]i>Qk>*]"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Wh*6*OJs64CqO&xygkkv","tt":"ShipAddrCountry","type":"ft_string","usg":"NOT_USAGE","num":111,"order":24,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"Wh*6*OJs64CqO&xygkkv","t":"Wh*6*OJs64CqO&xygkkv"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"DLaO(tyUMkPe]OMoq#X+","tt":"ShipAddrLatitude","type":"ft_string","usg":"NOT_USAGE","num":122,"order":25,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"DLaO(tyUMkPe]OMoq#X+","t":"DLaO(tyUMkPe]OMoq#X+"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"&pXr92o@<8Fy;w:X@IPr","tt":"ShipAddrLongitude","type":"ft_string","usg":"NOT_USAGE","num":123,"order":26,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"&pXr92o@<8Fy;w:X@IPr","t":"&pXr92o@<8Fy;w:X@IPr"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"*ww*Z6%nKJQscoNB%15N","tt":"Billing Address","type":"ft_subheader","usg":"NOT_USAGE","num":104,"order":27,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"*ww*Z6%nKJQscoNB%15N","t":"*ww*Z6%nKJQscoNB%15N"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":18,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Tv@vN3je4QPl-Vi*8js2","tt":"BillAddrLine1","type":"ft_string","usg":"NOT_USAGE","num":82,"order":28,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"Tv@vN3je4QPl-Vi*8js2","t":"Tv@vN3je4QPl-Vi*8js2"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"PW16MZ#UTvb@CrY8%sG","tt":"BillAddrLine2","type":"ft_string","usg":"NOT_USAGE","num":105,"order":29,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"PW16MZ#UTvb@CrY8%sG","t":"PW16MZ#UTvb@CrY8%sG"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":")(y2ok*7%1T*vX2ylMAT","tt":"BillAddrCity","type":"ft_string","usg":"NOT_USAGE","num":81,"order":30,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":")(y2ok*7%1T*vX2ylMAT","t":")(y2ok*7%1T*vX2ylMAT"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"*cIa;YMv0U9z*]ss2Etj","tt":"BillAddrZipCode","type":"ft_string","usg":"NOT_USAGE","num":83,"order":31,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"*cIa;YMv0U9z*]ss2Etj","t":"*cIa;YMv0U9z*]ss2Etj"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"K)ODw44;fmBkCJ+ndO7:","tt":"BillAddrState","type":"ft_string","usg":"NOT_USAGE","num":84,"order":32,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"K)ODw44;fmBkCJ+ndO7:","t":"K)ODw44;fmBkCJ+ndO7:"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"H2g35(2UFWGGd<[j85;U","tt":"BillAddrCountry","type":"ft_string","usg":"NOT_USAGE","num":96,"order":33,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"H2g35(2UFWGGd<[j85;U","t":"H2g35(2UFWGGd<[j85;U"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"#ztUYV%w(;Qn-8[tt7B]","tt":"BillAddrLatitude","type":"ft_string","usg":"NOT_USAGE","num":120,"order":34,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"#ztUYV%w(;Qn-8[tt7B]","t":"#ztUYV%w(;Qn-8[tt7B]"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"Q(B7&>fHi(kUrEZtfkVx","tt":"BillAddrLongitude","type":"ft_string","usg":"NOT_USAGE","num":121,"order":35,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"Q(B7&>fHi(kUrEZtfkVx","t":"Q(B7&>fHi(kUrEZtfkVx"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"Uo0Xl5wXK#Ced]]b%ta>","tt":"QuickBooks","type":"ft_subheader","usg":"NOT_USAGE","num":95,"order":36,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"Uo0Xl5wXK#Ced]]b%ta>","t":"Uo0Xl5wXK#Ced]]b%ta>"}],"depend":"[{\"template_index\":94,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":true,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"1\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":16,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"@k0;Cr0<x2Hz![wHS9Zz","tt":"qb_id","type":"ft_string","usg":"NOT_USAGE","num":86,"order":37,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"@k0;Cr0<x2Hz![wHS9Zz","t":"@k0;Cr0<x2Hz![wHS9Zz"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"KVTHP(vW]pGrSVHUkfYR","tt":"qb_state_error","type":"ft_boolean","usg":"NOT_USAGE","num":92,"order":38,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"KVTHP(vW]pGrSVHUkfYR","t":"KVTHP(vW]pGrSVHUkfYR"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":")F&6bw+b9:ATM;umfB-:","tt":"qb_active","type":"ft_boolean","usg":"NOT_USAGE","num":100,"order":39,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":")F&6bw+b9:ATM;umfB-:","t":")F&6bw+b9:ATM;umfB-:"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"PGehrJ*@(Yz-fOiQ4Uv+","tt":"qb_response","type":"ft_string","usg":"NOT_USAGE","num":87,"order":40,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"PGehrJ*@(Yz-fOiQ4Uv+","t":"PGehrJ*@(Yz-fOiQ4Uv+"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":12,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"%42ZaegQTzw#1J-6b7TB","tt":"hide_fields_when_editing","type":"ft_checkboxes","usg":"NOT_USAGE","num":94,"order":41,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"{\"sl\":[{\"t\":\"Yes\",\"c\":1,\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]}],\"sort\":false}","i":0,"o":"%42ZaegQTzw#1J-6b7TB","t":"%42ZaegQTzw#1J-6b7TB"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"delimiter\":\", \",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":true},{"u":"]XZgFwKXgVf!MWx8IUO1","tt":"intuit_tid","type":"ft_string","usg":"NOT_USAGE","num":98,"order":42,"lib":"MqjFC;g0naqBMl91m;bA","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"]XZgFwKXgVf!MWx8IUO1","t":"]XZgFwKXgVf!MWx8IUO1"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false}]},{"title":"TT Items","id":"PB@ApkWnxp]aToZnq#:1","color":-3158065,"icon":"inline:iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAV0SURBVHic7d1LaFxVHMfx\/50kk8mjCm6iCyvWJJM71ZJMWkSEiBocEQvxFShCdSEWN5p9QRB04apdCXXTKmjTBtLpQ5wbUwMKWkxnaBFvOtm4ruBCzcQmSo4LazHppHcm553\/77NLOjn\/094vZzI3jxIBAAAAADuB7Q3ICsO8aPChUwsLlXGtm\/FQyvYGwC4EwBwCYA4BMIcAmEMAzCEA5hAAcwiAOQTAnPO3gpu41SvlhTfepieef\/l\/7wkOFbJdH5uYbZOzAeRye4eEWKuYnnu0+M26t4UQTz07sGPO9D5McTKAMMzXiKjT1vyNERARtaytZUfDuxYtbEcr5wIwdeQnuf0p4V8tbXTv6K7u6xa2pIUzAdg68pPUOw2IiNLpro4nHwxuGN6Ock4EEIb5ZSLqsL2PzWwWARHRM\/1dqSAInDi1tsJ6AK4c+Uk2e0r4TyHbbf3fciusbToMh\/NEomxr\/lbd6TQg8i8EK5sNw\/wNImq3MVuFpAiI\/AnB+CZ9OfKT7D94iJ5+8dXEx7kegrHN7d49uG9tLfWD7DqFwui6t6NotqGP6+npocHBR5r+uCSNnAZE7oZgZFNhmF8horTsOnF8+6cMudxwQx9bKIzSkSMfrnvfgQOv09WrP8puq+EIiNwLQfsXg24e+VIXv6urs+7Fl3Xy5Am6cuV76XUmxkbo4vRnDT02qi6JqLq0Kj1UEW0BZLNDe1U835dKRZqf\/1bFlupKp9NK4jr\/6TGaGBtp9OFtN0P4VXqwJC0BhGF+JZUK5mXXieMy7dx5v4otNTRrz56HpddpIgIionui6pLVT4qVB+DykZ9kcvITZU8JpcnjCnakn7IAVB35586d1nrkJ1H1lFCaPN7saWCFkgBUHvm9vQ+p2JK0OC7TwEBWeh3XI5AOQMWR39lp58hPMj39OVUq30mvMzE2QpdmL2z651F16TXpIVtk\/XsCz549TZcv2zvyk2Qy7UrivFa54z2wE9IDtshqAHFcpr4+N478JHFcpmy2z\/Y2lGu1MTSTaVdytBLVvzuoy5kzk7SyskpDQ48Zm6mb8ROgWDyl7OLb0N6u5lWCK4wGEMdl6u\/vNTlSG9V\/l1Jcu0\/ZYk0wFsDGr+JtB8XiKWVrBS3ia2WLNcH6qwC4ZcDGUATAHAJgDgEwhwAcUlpcOmp6JgJwSCDoHdMzEQBzCIA5BMAcAnDMTLX2nMl5CMAxgsR5k\/MQgHuMXhMEwBwCYA4BOGjuZ5ExNQsBOGh1tRaZmoUA3GTshwkQAHMIgDkEwBwCcFS0WDtsYg4CcJUQ75sYgwCYQwDMIQDmEIDDvqzW9umegQAcliJxUf8McNkO3QOs\/H6AJMEHv1mdLw7fbXW+STgBmEMAjhNCaP3dwgjAcTPV5Smd6yMA1wXiJZ3LIwDmEABzCIA5BOCBqFp7U9faCMAL4piulREAc07eCuZ0K9Y2nADMIQBPfBH\/+YCOdRGAJ1pb\/tbyq2QRgDeCXTpWRQDMIQDmEABzCMAj0WLtI9VrIgCfCPGW6iWdvBM4tfCX1fmvhG1W55vkZADj08tW53O6FY2nAOYQgGeiam1M5XoIwDtiWuVqCMA\/Sn9OAAEwhwCYQwAemvvpl25VayEAD622ds6qWgsB+OlRVQs5eSeQ050423ACMIcAmEMAnpqp\/vGeinUQgKcEBe+qWAcBMIcAmEMAzCEAj81c+\/1x2TUQgMdEkPpKdg0E4LcO2QWM3QqOolnK5YZNjdvOLhSy3ftVLebk1wLgFqUXux4E4A7tF7seBGCHlYtdj\/Q3GIZhXqjYCANTCwuVcdub2AivAphDAMwhAOYQAHMIgDkVLwO1\/o8W24UQ4pLtPQAAAAAAEBHRPxmwSqmJINacAAAAAElFTkSuQmCC","unique_names":false,"triggers":"[{\"enabled\":true,\"event\":\"CREATE_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields values - EC-BSE\",\"restriction\":\"NONE\",\"script\":\"var e \\u003d entry();\\n\\nif(e.field(\\\"ItemType\\\")\\u003d\\u003d\\u003d\\u0027Group\\u0027)\\n{\\n   message(\\\"Bundles (Group items) can\\u0027t be created from Memento. Create the bundle in QuickBooks — it will sync here automatically.\\\");\\n   cancel();\\n}\\n\\nelse if(e.field(\\\"ItemType\\\")\\u003d\\u003d\\u0027Inventory\\u0027 \\u0026\\u0026 !check_inventory_fields())\\n   cancel();\\n\\nelse if(e.field(\\\"ItemType\\\")!\\u003d\\u0027Inventory\\u0027 \\u0026\\u0026 !check_accounts())\\n   cancel();\"},{\"enabled\":true,\"event\":\"MODIFY_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields values - EU\",\"restriction\":\"NONE\",\"script\":\"let e\\u003dentry();\\nif (e.field(\\\"ItemType\\\")\\u003d\\u003d\\u003d\\u0027Group\\u0027)\\n{\\n\\tif (!e.field(\\\"qb_id\\\"))\\n\\t\\tmessage(\\\"Bundles (Group items) can\\u0027t be created from Memento. Create the bundle in QuickBooks — it will sync here automatically.\\\");\\n\\telse\\n\\t\\tmessage(\\\"Bundles (Group items) can\\u0027t be edited in Memento. Edit the bundle in QuickBooks — it will sync here automatically.\\\");\\n\\tcancel();\\n}\\n\\nelse if (e.field(\\\"qb_id\\\") \\u0026\\u0026 (e.field(\\\"ItemType\\\") !\\u003d _ItemType))\\n{\\n\\tmessage (\\\"Changing ItemType for existing items is allowed in QuickBooks only.\\\");\\n\\tcancel();\\n}\\n\\nelse if (e.field(\\\"ItemType\\\")!\\u003d\\u0027Group\\u0027) {\\n\\tif(e.field(\\\"ItemType\\\")!\\u003d\\u0027Inventory\\u0027 \\u0026\\u0026 !check_accounts())\\n\\t\\tcancel();\\n\\n\\telse if(e.field(\\\"ItemType\\\")\\u003d\\u003d\\u0027Inventory\\u0027 \\u0026\\u0026 !check_inventory_fields())\\n\\t\\tcancel();\\n}\"},{\"enabled\":true,\"event\":\"CREATE_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields length - EC\",\"restriction\":\"NONE\",\"script\":\"if(!check_fields_length())\\n   cancel();\"},{\"enabled\":true,\"event\":\"MODIFY_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"BEFORE_SAVE\",\"name\":\"Check fields length - EU\",\"restriction\":\"NONE\",\"script\":\"if(!check_fields_length())\\n   cancel();\"},{\"enabled\":true,\"event\":\"MODIFY_ENTRY\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"OPEN_FORM\",\"name\":\"Store current values - EU-OEEC\",\"restriction\":\"NONE\",\"script\":\"let _ItemType \\u003d entry().field(\\\"ItemType\\\"); \\n\"},{\"enabled\":true,\"event\":\"COMMON\",\"jsLibs\":[],\"modifiedTime\":0,\"moment\":\"LIBRARY_CONTEXT\",\"name\":\"shared functions\",\"restriction\":\"NONE\",\"script\":\"\/\/ Items\\nlet C_MAX_LENGTHS \\u003d {\\n    \\\"Name\\\": 100,\\n    \\\"Description\\\": 4000,\\n    \\\"Sku\\\": 100,\\n}\\n\\n\\nfunction check_inventory_fields()\\n{\\nlet e \\u003d entry();\\nif (!e.field(\\\"InventoryStartDate\\\")) {\\n\\tmessage(\\\"InventoryStartDate for an Inventory item is required!\\\");\\n\\treturn false;\\n}\\nif (!e.field(\\\"TrackQuantityOnHand\\\")) {\\n\\tmessage(\\\"TrackQuantityOnHand for an Inventory item is required!\\\");\\n\\treturn false;\\n}\\nif (!e.field(\\\"QuantityOnHand\\\")) {\\n\\tmessage(\\\"QuantityOnHand for an Inventory item is required!\\\");\\n\\treturn false;\\n}\\nif (e.field(\\\"AssetAccountLink\\\")\\u003d\\u003d\\u0027[]\\u0027) {\\n\\tmessage(\\\"AssetAccount for an Inventory item is required!\\\");\\n\\treturn false;\\n}\\nif (e.field(\\\"IncomeAccountLink\\\")\\u003d\\u003d\\u0027[]\\u0027) {\\n\\tmessage(\\\"IncomeAccount for an Inventory item is required!\\\");\\n\\treturn false;\\n}\\nif (e.field(\\\"ExpenseAccountLink\\\")\\u003d\\u003d\\u0027[]\\u0027) {\\n\\tmessage(\\\"ExpenseAccount for an Inventory item is required!\\\");\\n\\treturn false;\\n}\\nreturn true;\\n}\\n\\n\\n\\nfunction check_accounts()\\n{\\nlet e \\u003d entry();\\nif (e.field(\\\"IncomeAccountLink\\\")\\u003d\\u003d\\u0027[]\\u0027 \\u0026\\u0026 e.field(\\\"ExpenseAccountLink\\\")\\u003d\\u003d\\u0027[]\\u0027) {\\n\\tmessage(\\\"IncomeAccount or ExpenseAccount is required!\\\");\\n\\treturn false;\\n}\\nreturn true;\\n}\\n\\n\\nfunction check_fields_length()\\n{\\n\\nlet C_MESS_LENGTH_EXCEEDS         \\u003d \\u0027Field \\\"$str1\\\" length should be $str2 symbols max, now it\\\\\\u0027s $str3\\u0027;\\nlet C_MESS_ATTR_LENGTH_EXCEEDS    \\u003d \\u0027Attribute \\\"$str1\\\" length for \\\"$str2\\\" entry in Invoice should be $str3 symbols max, now it\\\\\\u0027s $str4\\u0027;\\n\\nlet e \\u003d entry();\\nfor (let _key in C_MAX_LENGTHS) {\\n\\t\/\/ A nested object describes a link field: limits for its attributes \\n    if (typeof C_MAX_LENGTHS[_key] \\u003d\\u003d\\u003d \\\"object\\\")   {\\n    \\tfor (var _key_attr in C_MAX_LENGTHS[_key])\\t{\\n            \/\/ Check every linked entry:\\n            for (let _itemLinkNo \\u003d 0; _itemLinkNo \\u003c e.field(_key).length; _itemLinkNo++)\\t{\\n                let _attribute_value \\u003d e.field(_key)[_itemLinkNo].attr(_key_attr);\\n                if ((_attribute_value !\\u003d null) \\u0026\\u0026 (_attribute_value.length \\u003e C_MAX_LENGTHS[_key][_key_attr].valueMaxLength)) {\\n                    message(C_MESS_ATTR_LENGTH_EXCEEDS.replace(\\u0027$str1\\u0027, _key_attr)\\n\\t\\t\\t            .replace(\\u0027$str2\\u0027, e.field(_key)[_itemLinkNo].field(C_MAX_LENGTHS[_key][_key_attr].linkedEntryField))\\n\\t\\t\\t            .replace(\\u0027$str3\\u0027, C_MAX_LENGTHS[_key][_key_attr].valueMaxLength)\\n\\t\\t\\t            .replace(\\u0027$str4\\u0027, _attribute_value.length));\\n                    return false;\\n                }\\n\\t        }\\n\\t    }\\n    }\\n    else\\n    if (e.field(_key).length \\u003e C_MAX_LENGTHS[_key]) {\\n        message(C_MESS_LENGTH_EXCEEDS.replace(\\u0027$str1\\u0027, _key).replace(\\u0027$str2\\u0027, C_MAX_LENGTHS[_key]).replace(\\u0027$str3\\u0027, e.field(_key).length));\\n        return false;\\n    }\\n}\\nreturn true;\\n\\n}\\n\"}]","entry_pages":"{\"pages\":[{\"d\":true,\"f\":[2,12,18,21,22,23,24,26,28,32,33,34,35,36,37,38],\"hidden\":false,\"hide_aggr\":[\"R:;%PlatY!d*TAs3n4oW\",\"\\u003eTHFgVXEjD-j#5ms:7:b\",\"QJ\\u003e9]0Pr(+CM:i\\u0026wzoo+\",\"IclEjtnMzT#24)@ZRQv!\",\"[dqLy7W8rPGkSs4Uw*AQ\"],\"inv\":[\"R:;%PlatY!d*TAs3n4oW\",\"\\u003eTHFgVXEjD-j#5ms:7:b\",\"QJ\\u003e9]0Pr(+CM:i\\u0026wzoo+\",\"IclEjtnMzT#24)@ZRQv!\",\"[dqLy7W8rPGkSs4Uw*AQ\"],\"ml\":[\"_index_{\\\"i\\\":0,\\\"t\\\":\\\"TT Work Orders\\\"}\"],\"t\":\"def_page_title\"},{\"d\":false,\"f\":[1,5,17,19,20,29,30],\"hidden\":false,\"hide_aggr\":[],\"inv\":[],\"ml\":[],\"t\":\"Service info\"}],\"connectors\":{},\"desc_max_lines\":2,\"name_max_lines\":1,\"notes\":\"\",\"steps\":false}","templates":[{"u":"#q3cr#MmI7AL*L;ASEN7","tt":"Name","type":"ft_string","usg":"USAGE_IN_TITLE","num":2,"order":0,"lib":"PB@ApkWnxp]aToZnq#:1","r":true,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"#q3cr#MmI7AL*L;ASEN7","t":"#q3cr#MmI7AL*L;ASEN7"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" \",\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":true,"readonly":false},{"u":"JFIW:R@DiUq9(j;JIbrg","tt":"ItemType","type":"ft_str_list","usg":"NOT_USAGE","num":24,"order":1,"lib":"PB@ApkWnxp]aToZnq#:1","r":true,"stats":"","hint":"","cnt":[{"s":"{\"sl\":[{\"t\":\"NonInventory\",\"c\":2,\"i\":\"\",\"def\":true,\"c_text\":false,\"f\":false,\"children\":[]},{\"t\":\"Service\",\"c\":3,\"i\":\"\",\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]},{\"t\":\"Inventory\",\"c\":4,\"i\":\"\",\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]},{\"t\":\"Group\",\"c\":5,\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]}],\"sort\":false}","i":0,"o":"JFIW:R@DiUq9(j;JIbrg","t":"JFIW:R@DiUq9(j;JIbrg"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"YgRJi+T<!Qv[w>pCtf17","tt":"InventoryStartDate","type":"ft_date","usg":"NOT_USAGE","num":32,"order":2,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","i":1,"o":"YgRJi+T<!Qv[w>pCtf17","t":"YgRJi+T<!Qv[w>pCtf17"}],"depend":"[{\"template_index\":24,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"4\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"dateTimeFormats\":{},\"endYear\":2100,\"startYear\":1900,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"HCo*rENg)qkcUJcC0qm","tt":"TrackQuantityOnHand","type":"ft_boolean","usg":"NOT_USAGE","num":34,"order":3,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"HCo*rENg)qkcUJcC0qm","t":"HCo*rENg)qkcUJcC0qm"}],"depend":"[{\"template_index\":24,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"4\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"@a#+1Wps9iQB0j<q]&I5","tt":"QuantityOnHand","type":"ft_real","usg":"NOT_USAGE","num":33,"order":4,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","o":"@a#+1Wps9iQB0j<q]&I5","t":"@a#+1Wps9iQB0j<q]&I5"}],"depend":"[{\"template_index\":24,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"4\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"!3f3M6w*L1x3cFtdKk4c","tt":"Taxable","type":"ft_boolean","usg":"NOT_USAGE","num":28,"order":5,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"!3f3M6w*L1x3cFtdKk4c","t":"!3f3M6w*L1x3cFtdKk4c"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Xt]k2VyGS6-fk5iYkpYH","tt":"Sku","type":"ft_string","usg":"NOT_USAGE","num":35,"order":6,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"Xt]k2VyGS6-fk5iYkpYH","t":"Xt]k2VyGS6-fk5iYkpYH"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"G:xDgc9I>C(vgVDen]Ei","tt":"Description","type":"ft_string","usg":"NOT_USAGE","num":26,"order":7,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"G:xDgc9I>C(vgVDen]Ei","t":"G:xDgc9I>C(vgVDen]Ei"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"S*#Y9dJe]*8EdmCy]Zb:","tt":"PurchaseCost","type":"ft_money","usg":"NOT_USAGE","num":36,"order":8,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"USD","o":"S*#Y9dJe]*8EdmCy]Zb:","t":"S*#Y9dJe]*8EdmCy]Zb:"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":2,"json_options":"{\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"-VEdt[IcDeEdhl3I@fvB","tt":"UnitPrice","type":"ft_money","usg":"NOT_USAGE","num":12,"order":9,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"USD","o":"-VEdt[IcDeEdhl3I@fvB","t":"-VEdt[IcDeEdhl3I@fvB"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":1,"json_options":"{\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"-&U3*CB@9Orq4TNIN-s&","tt":"AssetAccountLink","type":"ft_lib_entry","usg":"NOT_USAGE","num":21,"order":10,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"_index_{\"i\":3,\"t\":\"TT Accounts\"}","i":0,"o":"-&U3*CB@9Orq4TNIN-s&","t":"-&U3*CB@9Orq4TNIN-s&"}],"depend":"[{\"template_index\":24,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"4\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"compactEditMode\":false,\"compactViewMode\":false,\"defaultEntriesIds\":[],\"relationType\":1,\"attrJsonTemplates\":[],\"maxObjects\":2147483647,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"(zTl*&:H35)zZiIe>am)","tt":"IncomeAccountLink","type":"ft_lib_entry","usg":"NOT_USAGE","num":22,"order":11,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"_index_{\"i\":3,\"t\":\"TT Accounts\"}","i":0,"o":"(zTl*&:H35)zZiIe>am)","t":"(zTl*&:H35)zZiIe>am)"}],"depend":"[{\"template_index\":24,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"2\",\"3\",\"4\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"compactEditMode\":false,\"compactViewMode\":false,\"defaultEntriesIds\":[],\"relationType\":1,\"attrJsonTemplates\":[],\"maxObjects\":2147483647,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"R5[6Ud<Uyxdg3MfZK7LE","tt":"ExpenseAccountLink","type":"ft_lib_entry","usg":"NOT_USAGE","num":23,"order":12,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"_index_{\"i\":3,\"t\":\"TT Accounts\"}","i":0,"o":"R5[6Ud<Uyxdg3MfZK7LE","t":"R5[6Ud<Uyxdg3MfZK7LE"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"compactEditMode\":false,\"compactViewMode\":false,\"defaultEntriesIds\":[],\"relationType\":1,\"attrJsonTemplates\":[],\"maxObjects\":2147483647,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Ia&QtyrG<kZc@(Y4Mpxt","tt":"JS Background Color","type":"ft_script","usg":"HIDDEN","num":18,"order":13,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"if (field(\\\"qb_active\\\") == false && field(\\\"qb_id\\\"))\\n    \\\"#A6A6A6\\\"\\nelse if (field(\\\"qb_state_error\\\") == true)\\n    \\\"#eac4d5\\\"\\nelse if (field(\\\"qb_id\\\"))\\n    \\\"#d6eadf\\\"\\nelse \\n   \\\"#f7d794\\\"\",\"res\":4,\"s\":5,\"real_time\":true,\"libs\":[]}","o":"Ia&QtyrG<kZc@(Y4Mpxt","t":"Ia&QtyrG<kZc@(Y4Mpxt"}],"depend":"","disp_title":true,"entry_color":true,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":1,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"-y<p;0a<[Vfw0zu!hvZZ","tt":"BundleContents","type":"ft_string","usg":"NOT_USAGE","num":37,"order":14,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"-y<p;0a<[Vfw0zu!hvZZ","t":"-y<p;0a<[Vfw0zu!hvZZ"}],"depend":"[{\"template_index\":24,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":false,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"5\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"description\":\"\\\"BundleContents\\\" is QuickBooks→Memento only. Edit in Memento has no effect.\",\"descriptionPos\":1,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"*C!8K<vyt6<nCI;[@+C9","tt":"Invoice line order","type":"ft_int","usg":"NOT_USAGE","num":38,"order":15,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","i":50,"o":"*C!8K<vyt6<nCI;[@+C9","t":"*C!8K<vyt6<nCI;[@+C9"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"NFg@!oIscD@s*(KP9Nzm","tt":"QuickBooks","type":"ft_subheader","usg":"NOT_USAGE","num":20,"order":16,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"NFg@!oIscD@s*(KP9Nzm","t":"NFg@!oIscD@s*(KP9Nzm"}],"depend":"[{\"template_index\":19,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":true,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"1\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":16,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"OrRC@Y4pzS-81*dD9#nr","tt":"qb_id","type":"ft_string","usg":"NOT_USAGE","num":1,"order":17,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"OrRC@Y4pzS-81*dD9#nr","t":"OrRC@Y4pzS-81*dD9#nr"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"><v*]L@qQ&xu4FKEV7CI","tt":"qb_state_error","type":"ft_boolean","usg":"NOT_USAGE","num":17,"order":18,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"><v*]L@qQ&xu4FKEV7CI","t":"><v*]L@qQ&xu4FKEV7CI"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Zi>ZF7+V!#Tn4mnXM2h0","tt":"qb_active","type":"ft_boolean","usg":"NOT_USAGE","num":30,"order":19,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"Zi>ZF7+V!#Tn4mnXM2h0","t":"Zi>ZF7+V!#Tn4mnXM2h0"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"!PSZxBIPkIkK@P]Z0Evw","tt":"qb_response","type":"ft_string","usg":"NOT_USAGE","num":5,"order":20,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"!PSZxBIPkIkK@P]Z0Evw","t":"!PSZxBIPkIkK@P]Z0Evw"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":12,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":true},{"u":"&H[>t)S!deJ0x;9J1NEh","tt":"hide_fields_when_editing","type":"ft_checkboxes","usg":"NOT_USAGE","num":19,"order":21,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"{\"sl\":[{\"t\":\"Yes\",\"c\":1,\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]}],\"sort\":false}","i":0,"o":"&H[>t)S!deJ0x;9J1NEh","t":"&H[>t)S!deJ0x;9J1NEh"}],"depend":"","disp_title":false,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"delimiter\":\", \",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":true},{"u":"It!MSFg<n9kv*y%@xzq[","tt":"intuit_tid","type":"ft_string","usg":"NOT_USAGE","num":29,"order":22,"lib":"PB@ApkWnxp]aToZnq#:1","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"It!MSFg<n9kv*y%@xzq[","t":"It!MSFg<n9kv*y%@xzq["}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false}]},{"title":"TT Accounts","id":"GM7RT0LIKJueEQ5zJX;s","color":-921103,"icon":"inline:iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAZaSURBVHic7Z1PbBRVHMe\/s4XKHwurIsbYxGiK9A0JkamakHBT0gsey1FvXpETGtbYxG2i8YIkHvSoF2OJF700IYbEf4lmpzTCviVG5OAf\/jUslBBrYZ8HqeCwtm933u+9mfd+n1vb6e99O7\/Pzsy+vpkFGIZhGIZhmOAYcB3AJUIkv27d+uimS5f+OOE6iysi1wFcIETSBrD57u8ppY62WrMHHEVyRlACCJH8CeC+VTb7WMr0JRt5ikAQAgiRdND733pcynQvRZ4i4bUAQiQqbw2lMNdqpU+byFNEvBTAROO7cE7K9AmCuk7xSgCixmeZlzLdYmEcK3ghgKXGZ1mUMl3nYFyjlFoAR43P0pEyLe18SikFKEjj70HKtHT7s0yBK0Ikt1yH0KFMIhQ+6PDw7vVDQ4s3XOfohzKIUNiAo6PPPRRFNy9T1W82G\/\/5Oo7HqIYqtAiFCybErseB6BxV\/Wzjs4QmQmECbd+e7KxUMEdVf7XGZwlFBOdB4nhsj1LqK6r6vTY+C7EIFQBO39E4EyCOxyaUUp9S1c\/b+CyUImzYEA02Go0lsgFWwLoAQowdANQRqvqmG5+FUoTFxah69mzjKtkAXbAmQBwnk0rhTar61I3PQilCp6MeO3Nm9neyAe6CXIA4Tj5QCq9Q1bfd+CyUIgwMID51KpVkA4BQACGSzwHso6rvuvFZKEWoVPD86dPplxS1jQswOpp8H0V41nTdZYrW+CyUIgDqZSlnPzJZ0ZgAQiQ\/ARgxVS9L0RufhVaE6FUpG+8ZqZS3gBC75oHoQRNhulG2xmchFuEdKRuv5arQ7y8KkdwAsD7P4CtR9sZnoRWh\/5XMPQsgRHIThDeU+Nb4LMQifCFl+mIvv6AtAPUiDN8bn4VShChS3zSbs3u0tl1tA248LcRHhJ+lTFe8MP9fAbjxdqEUQSlcbLXSR7r9rKsAlM3nxq8MoQjTUqb7s99cQzVaFm68Hsv7ifjU8C\/kAnDj+8OWCGQCFK3x03IJ+z\/TW1uqDm9efSNLUItgXICiNd4XqEQwJgA33g6mRcgtADfeDc1mA0op7NjxTK46FUN5GAdEUf5\/5uY+AszMHM8dIsv4+AvGa\/bCtNRfnzkh1mptd\/78BczN\/dhvJDKsTwTpYPK08uT7C\/il3TFWL4vuO4aZmeM4ePAQWQ4N3E4E2Wbo3Wu4\/lchbyIuFF4KEE1ZXVldary6CFTg5veKVwJUuPk9U8hTQNTP+5t628kJXzdrHI9NACC7Fa5f\/DgCvNWuu45QVvwQIMJh1xHKSvkFmLzmzTP7XFB+AdZ0LrmOUGZI7g2cOXNd+4JsfPv9+TL0evFXqzp\/KMbdaO+rKDo2\/tTGCdPjl\/8I0AsFa34RCEkAsucPlZmQBNjmOkARCUmADa4DFJFCzgSSUW8rIPoaUEe7\/nwADbxePWs5lVN8EGAJgN6qDACA2gOg+31ztwDU23e+jlDD4epUnnBFp\/yngFp1kKy2Qh31tsJU2+lKDkrKL4ANFN529c8mavwQYO3SJivjeCiBHwIcenjB2lieSeCHAIDdWb56+7q1sYjxRwDApgQbLY1Djl8CAPYk8ORU4J8AwG0Jbg67jlEG\/BQAAGpbfkOtGpEeEertfDfmFQAfZgJXR1eCyYWtWHPrQg+Vf0ABPnQjD\/4eAfphcuhiaGsGWIDAYQEChwXIMnmV7MHXRaT8F4H1tsmFkp8AKqgXRfkFcHm7lcJeZ2MbIijbjfNG1fzjUSzDAgQOC9AvnswXsAD9seg6gClYgH6oVde5jmAKFqBXPDn0L8MC9IJnzQdYAE2iIz42H\/BjIogQdRS1Bw64TkFJ+QXQfWX+M2WsN2vo6au9G3wKCBwWIHBYgMBhAQJH+yJwZGTn8ODg2t0625789oR2gNtP0CRn\/uSH266M7PtOZ9sRS5kA\/X21cGV+WHdfNZuNad3xta9243hsQilVuEedMvciZardVz4FBA4LEDgsQOCwAIHDAgQOCxA4LEDgsACBwwIEDsl6AP5AafNQffIoHwEChwUIHBYgcFiAwGEBAocFCBwWIHBYgMBhAQKHBQicrosHhUi8eBI2cwelomOtVuOeVcV8BAgcFiBwWIDAYQEChwUIHBYgcFiAwGEBAocFCJyui0KVio7ZDsJQ09F6NgLDMAzDMAwTAH8DU6G58djI\/VYAAAAASUVORK5CYII=","unique_names":false,"entry_pages":"{\"pages\":[{\"d\":true,\"f\":[0,7,8,9,10,11,19,22],\"hidden\":false,\"hide_aggr\":[\"*e8@2t!d\\u003eUa*5*bdFTE7\",\"F!17OEvbHN\\u0026x9xF2aQVs\",\"!2N%ZAqapwMZJ\\u003eD8esmY\",\"*1[oheJ(UMi6\\u003e]0IAJn9\"],\"inv\":[\"*e8@2t!d\\u003eUa*5*bdFTE7\",\"F!17OEvbHN\\u0026x9xF2aQVs\",\"!2N%ZAqapwMZJ\\u003eD8esmY\",\"*1[oheJ(UMi6\\u003e]0IAJn9\"],\"ml\":[\"_index_{\\\"i\\\":2,\\\"t\\\":\\\"TT Items\\\"}\"],\"t\":\"def_page_title\"},{\"d\":false,\"f\":[],\"hidden\":false,\"hide_aggr\":[],\"inv\":[],\"ml\":[],\"t\":\"Items\"},{\"d\":false,\"f\":[1,14,16,17,18,20,21],\"hidden\":false,\"hide_aggr\":[],\"inv\":[],\"ml\":[],\"t\":\"Service info\"}],\"connectors\":{},\"desc_max_lines\":5,\"name_max_lines\":1,\"notes\":\"\",\"steps\":false}","templates":[{"u":"G3>NEQK4)*j978UAu+47","tt":"Name","type":"ft_string","usg":"USAGE_IN_TITLE","num":0,"order":0,"lib":"GM7RT0LIKJueEQ5zJX;s","r":true,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"G3>NEQK4)*j978UAu+47","t":"G3>NEQK4)*j978UAu+47"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" \",\"textDrawable\":false}","unique":false,"readonly":false},{"u":"@Zz!bE2oIp!<7iP3db1#","tt":"AccountType","type":"ft_string","usg":"USAGE_IN_HINT","num":11,"order":1,"lib":"GM7RT0LIKJueEQ5zJX;s","r":true,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"@Zz!bE2oIp!<7iP3db1#","t":"@Zz!bE2oIp!<7iP3db1#"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" * \",\"textDrawable\":false}","unique":false,"readonly":false},{"u":"&EDvEw77ZP6Ga+jbo3s:","tt":"SubAccount","type":"ft_boolean","usg":"USAGE_IN_HINT","num":7,"order":2,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"&EDvEw77ZP6Ga+jbo3s:","t":"&EDvEw77ZP6Ga+jbo3s:"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" * \",\"textDrawable\":false}","unique":false,"readonly":false},{"u":"%W#b@c45Z]vL1+Yb*@&[","tt":"FullyQualifiedName","type":"ft_string","usg":"NOT_USAGE","num":8,"order":3,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"%W#b@c45Z]vL1+Yb*@&[","t":"%W#b@c45Z]vL1+Yb*@&["}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"Hp-5H<Xg:0SdYIQwLlI4","tt":"Classification","type":"ft_string","usg":"USAGE_IN_HINT","num":9,"order":4,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"Hp-5H<Xg:0SdYIQwLlI4","t":"Hp-5H<Xg:0SdYIQwLlI4"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" * \",\"textDrawable\":true}","unique":false,"readonly":false},{"u":"[fL<vT+N@mJnd*3jq6Pv","tt":"AccountSubType","type":"ft_string","usg":"USAGE_IN_HINT","num":10,"order":5,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"[fL<vT+N@mJnd*3jq6Pv","t":"[fL<vT+N@mJnd*3jq6Pv"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"fieldDelimiter\":\" * \",\"textDrawable\":false}","unique":false,"readonly":true},{"u":"Si2p>j!zyaL)QmtY7W(+","tt":"JS Background Color","type":"ft_script","usg":"HIDDEN","num":19,"order":6,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"{\"expr\":\"if (field(\\\"qb_active\\\") == false && field(\\\"qb_id\\\"))\\n    \\\"#A6A6A6\\\"\\nelse if (field(\\\"SubAccount\\\") == true)\\n    \\\"#dff9fb\\\"\\nelse \\n   \\\"#f7f1e3\\\"\",\"res\":4,\"s\":5,\"real_time\":false,\"libs\":[]}","o":"Si2p>j!zyaL)QmtY7W(+","t":"Si2p>j!zyaL)QmtY7W(+"}],"depend":"","disp_title":true,"entry_color":true,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"html\":false,\"displayConvertUnitButton\":false,\"groupSeparator\":false,\"incDelta\":1.0,\"showCalc\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":1,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"IFn0*Be@2nsN!ot*INbZ","tt":"Appended Note","type":"ft_string","usg":"NOT_USAGE","num":22,"order":7,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"IFn0*Be@2nsN!ot*INbZ","t":"IFn0*Be@2nsN!ot*INbZ"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"[+!Y;Il&kIh>v0cMQzq:","tt":"QuickBooks","type":"ft_subheader","usg":"NOT_USAGE","num":14,"order":8,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"[+!Y;Il&kIh>v0cMQzq:","t":"[+!Y;Il&kIh>v0cMQzq:"}],"depend":"[{\"template_index\":16,\"type_class\":\"com.luckydroid.droidbase.depend.VisibleFieldDependType\",\"only_edit\":true,\"group_type\":0,\"depends\":[{\"key\":\"visible\",\"values\":[\"1\"]}]}]","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":-13783129,\"defaultColor\":false,\"family\":\"sans-serif\",\"size\":16,\"style\":1},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"M]&91Iu7IiRWPvPjwy7L","tt":"qb_id","type":"ft_string","usg":"USAGE_IN_STATUS","num":1,"order":9,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"M]&91Iu7IiRWPvPjwy7L","t":"M]&91Iu7IiRWPvPjwy7L"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"colorizeRules\":\"{\\\"colorTarget\\\":0,\\\"rules\\\":[]}\",\"descriptionPos\":17,\"directEdit\":6,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"T*>O!6tuirz3i6w-CrQf","tt":"qb_state_error","type":"ft_boolean","usg":"NOT_USAGE","num":17,"order":10,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"T*>O!6tuirz3i6w-CrQf","t":"T*>O!6tuirz3i6w-CrQf"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"Q*yPdZA2qRmO4;H+3O+;","tt":"qb_active","type":"ft_boolean","usg":"NOT_USAGE","num":21,"order":11,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"Yes::No::0","i":0,"o":"Q*yPdZA2qRmO4;H+3O+;","t":"Q*yPdZA2qRmO4;H+3O+;"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":false},{"u":"-On-&8+-zK*9M*jDp3g6","tt":"qb_response","type":"ft_string","usg":"NOT_USAGE","num":18,"order":12,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"","i":0,"o":"-On-&8+-zK*9M*jDp3g6","t":"-On-&8+-zK*9M*jDp3g6"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":12,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false},{"u":"]V>((YvZ5%wYL&ibJmsJ","tt":"hide_fields_when_editing","type":"ft_checkboxes","usg":"NOT_USAGE","num":16,"order":13,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"{\"sl\":[{\"t\":\"Yes\",\"c\":1,\"i\":\"\",\"def\":false,\"c_text\":false,\"f\":false,\"children\":[]}],\"sort\":false}","i":0,"o":"]V>((YvZ5%wYL&ibJmsJ","t":"]V>((YvZ5%wYL&ibJmsJ"}],"depend":"","disp_title":false,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"delimiter\":\", \",\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"textDrawable\":false}","unique":false,"readonly":true},{"u":"#0B&8Hkcqx3*%wttAHVn","tt":"intuit_tid","type":"ft_string","usg":"NOT_USAGE","num":20,"order":14,"lib":"GM7RT0LIKJueEQ5zJX;s","r":false,"stats":"","hint":"","cnt":[{"s":"","i":2,"o":"#0B&8Hkcqx3*%wttAHVn","t":"#0B&8Hkcqx3*%wttAHVn"}],"depend":"","disp_title":true,"entry_color":false,"show_in_table":true,"column_width":100,"week_event":0,"autofill":"","card_align":0,"json_options":"{\"naturalOrder\":false,\"colSpan\":1,\"descriptionPos\":17,\"directEdit\":0,\"fieldColorTarget\":0,\"font\":{\"color\":0,\"defaultColor\":true,\"family\":\"sans-serif\",\"size\":16,\"style\":0},\"textDrawable\":false}","unique":false,"readonly":false}]}]}