{ "name" : "Pman.Dialog.XtupleSalesOrder", "parent" : "", "title" : "", "path" : "/home/edward/gitlive/Pman.Xtuple/Pman.Dialog.XtupleSalesOrder.bjs", "permname" : "", "modOrder" : "001", "strings" : { "58ec392a138714456f83d1288f553099" : "tracknum", "42f6d99a2dddc4858882ed8e9a210b52" : "Invoice #", "249ff431aa95198ad6814dd1d2799883" : "Select taxtype", "fce9a6a1bd2a2050eb86d33103f46fd3" : "Invoices", "a2fdeac60e3c5b6c51a92e027fb9d533" : "Target Delivery", "96b0141273eabab320119c467cdcaf17" : "Total ", "d682c376c82f68bc65dcd05570d04dfc" : "Payments / Refunds / Credit Memos", "75ba8d70e3692ba200f0e0df37b4d2ae" : "IP address", "9f4f3d35db49c5c2bba70a321a42fa87" : "Find Products", "9d4ba8f5211a3ba238b2032be5991c14" : "Disc%", "e12167aa0a7698e6ebc92b4ce3909b53" : "To", "c4a0f4ddf926328daa2a350db9f9ca00" : "Qty Changed", "99575a08540e6ee585a7b389e8bde351" : "GL Tx", "ec211f7c20af43e742bf2570c3cb84f9" : "Add", "f84e65035f5d2d4a090b8a626c822321" : "List Price", "fc44040a63559bee1157010d4c602422" : "Select location", "62f0de97dd70387d493350e45bfa5583" : "Send Delivery Email", "cc7819055cde3194bb3b136bad5cf58d" : " ", "806dca90dbeda894ffb258939f9fef9a" : "Fill empty Ship To", "fce6d3795b41b54dc0dab82df50517c1" : "Select custinfo", "d323a19bad62ff427d0b75dc52674c81" : "#Ret", "c5eae6ea505388a73962c635ac821fba" : "SubTotal", "f2a6c498fb90ee345d997f888fce3b18" : "Delete", "418c5509e2171d55b0aee5c2ea4442b5" : "action", "51e07f52ae2192d23a1b43922e5beb90" : "#TX ship", "607ff05a0e4c02c54b2262cd2e381aff" : "Reserve Stock / Shipments", "689202409e48743b914713f96d93947c" : "Value", "d9db367d7e9d6a3d3ca0346dfa1ff9d2" : "Item Description", "16d2b386b2034b9488996466aaae0b57" : "History", "dd7bf230fde8d4836917806aff6a6b27" : "Address", "986b90fb419e5349dd59b691b0e0e9f6" : "Customer PO#", "7d74f3b92b19da5e606d737d339a9679" : "Item", "c5c8ac6bbc6d7f5c95d0a888527554d3" : "Order Details", "fd216b286b94577ac68c112c0dcaf341" : "TX#", "068f80c7519d0528fb08e82137a72131" : "Products", "b166cb3a96bdb966f3288b8599594d0d" : "Sell @", "1243daf593fa297e07ab03bf06d925af" : "Searching...", "151ccf95db9b81c11bb20fbc302af4b6" : "Select terms", "7eb17faabef94701775df7154f30684b" : "#avail", "f31bbdd1b3e85bccd652680e16935819" : "Source", "086247a9b57fde6eefee2a0c4752242d" : "Automatic", "0a90b1bc4078f74b6f0d117ec7df65af" : "Credit", "27f2870eaa01c99fc83105240ad15f7f" : "Delete All", "5f0c1431b38e3d279bf105d48824b7f3" : "Select ship to", "26453198f2ddac444702879a8f6d61a5" : "Auto Reverse", "780c462e85ba4399a5d42e88f69a15ca" : "Billing", "81dffdb31b9576e343d3f7ffcf721d7e" : "Cost of goods", "813f81532d71077e497863ec9faf16c7" : "Confirm Shipment", "46fc12727bf2c5cc79988ab857ad73b4" : "Print Shipping / Commercial Invoice", "8156649b9de8783c15c822b592c3bac6" : "Reverse Selected", "8c6aab77edc5b8e589b36bcf989683e4" : "Print Picking Slip", "69193f49683ba5a928ae8a27328105ba" : "Print Aus - GST included Invoice", "13dba24862cf9128167a59100e154c8d" : "Print", "4b5a5a93e13bd338d40cf4bae2ca51cb" : "Void Credit Memo", "b80f4ed22929b09103f0c5666ad7a7e1" : "Run Apply Fifo on order", "009534719f8c8221440a5629f497a784" : "Debit", "1abe972d603f3bd61eefc9ac39fb7522" : "#TX Tot", "7b09a122e58c067939744c4a96ff2d77" : "Select salesrep", "56d56144d4e4a42ce450446518c4fc00" : "#Diff", "03ab340b3f99e03cff9e84314ead38c0" : "Qty", "f4c6f851b00d5518bf888815de279aba" : "Notes", "c9cc8cce247e49bae79f15173ce97354" : "Save", "386c339d37e737a436499d423a77df0c" : "Currency", "f4757c5aca5e4410b63c6ec4cd0f2363" : "shiphead", "f97f673be4e5f66aca62b35280d8bcde" : "Print Standard Invoice", "acc95aeaee48871da70cc3bce664728c" : "Select shiptoinfo", "ce26601dac0dea138b7295f02b7620a7" : "Customer", "d335d558a8386d20318888b1f034103d" : "Unshipped Total", "2925dda0ec274c20c0a30d8720eb830b" : "Select curr_name", "72d6d7a1885885bb55a565fd1070581a" : "Import", "9aa6071f39d387792476bd70fed66735" : "Void / Unconfirm", "6f1bf85c9ebb3c7fa26251e1e335e032" : "Terms", "53896265ad28c11cb4997b3c3e3e122d" : "#Ship", "5da618e8e4b89c66fe86e32cdafde142" : "From", "158e64bcd08067d26e9c27679eeced88" : "No Items", "d179a904ac10a39ab574fe803cc29fa3" : "Run Void flagger", "f3d90c6982143029487fb00d4ef19526" : "#invoiced", "80092f7900d59aab765d0ddd35dc7231" : "Add Shipment", "a240fa27925a635b08dc28c9e4f9216d" : "Order", "01d35df7886d24900b1ecb65da6bf21d" : "Receive Payment", "f817f797c422f7ac3404b6223db1a1ee" : "invdetail", "50104a28589c5b6099d3580861c2551a" : "Shipments / Invoices", "e23841a1d7427d8a9297142145dff049" : "Select shipto", "9f1a342d0197aac60ed73e921dc4c1f5" : "Price Details", "2142511303396bd51e0cc25ea8ffe47f" : "Void Payment", "88408722ed9d719c44087292bf8a06cf" : "Prices with GST", "236119342501b1e596bc82013c9cfc42" : "SubTotal w/GST", "4b78ac8eb158840e9638a3aeb26c4a9d" : "Tax", "cb02c723b8a159fea3cd7913d3df7fbc" : "Doc#", "6a813cbab5d0c9d33b1a471839935d88" : "Cust#", "b8feb9ee933bc5cc05615860322e9e7a" : "Post Invoice", "70c6ddcd97af88d0aaac48268c459727" : "Download (as xls)", "66b2bba3de9b8c5d6fb94e9458f1b7f5" : "Show Inventory History", "57cdc7bcd2ca327f3267e2f5ecfa8c6d" : "Edit / Create Sales Order", "48e91c2f1cb7b90612ccae2502c7327f" : "Shipment Comments", "47cb03899dc494703b52c37240fa4c17" : "Stock Tx", "72bb7a9ea8714c52b0c0b8369d6a8dc3" : "Issue Date", "e5d63551ca2d2842661e49a25fd12a67" : "Edit Customer", "7608203603437f0513ba8203a2d39a4f" : "Item Code", "08bd40c7543007ad06e4fce31618f6ec" : "Account", "e963218370d6410e1ee0f8e6128c12d4" : "shipdate", "0ee182201463a0ea31cb073b227fbbbe" : "Print Chinese Invoice With GST in line item", "089ba2b5edc96565fc22c584ecfbb1a6" : "Displaying events{0} - {1} of {2}", "0bcef9c45bd8a48eda1b26eb0c61c869" : "%", "81ceb48a978444906d80119200aa358d" : "Void", "a763436d2b30d54e4aff264b1636827a" : "Discount (Pretax)", "4721299f56b6b7d43591156d1d3f3e82" : "List Price w/GST", "f4ac45b9eb622dcb26c0d4fc1c93b27c" : "Order Comments", "7a113dee68a51f4c5f71264fd0ce3781" : "Item#", "a860ed9926b241b7d4dca2d00610ab2c" : "Outstanding", "290612199861c31d1036b185b4e69b75" : "Summary", "786410e93beb0193d89f8608c54feb4b" : "Select item", "b1bc248a7ff2b2e95569f56de68615df" : "number", "07ca5050e697392c9ed47e6453f1453f" : "Completed", "6b15347cbd1bf352b547741a7525c1b4" : "#shipped", "b3c65c9f85b429821cf931b38386a64d" : "Select Tax Type", "5e33fc1550a56738da96fbaaf57e72f0" : "#TX ret", "16cd452dda9d4398bf6240603eee40a9" : "Posted", "b2f40690858b404ed10e62bdf422c704" : "Amount", "e87de1a5d238411ab34a292be599e9f4" : "Apply To All", "40e6e8652d174c7ceef48df46f9cf25a" : "From Location", "9122d60c0550be8ab070b96d8bbc6358" : "Sell @w/GST", "78ca8a8170f2065057507ddcde63d9ca" : "Tax Zone", "757989a16207ab23076685118640adf3" : "Item Cost", "160ab8f9d6c5d2819fff11dea08d4ef8" : "Download Excel", "0ee72ad23c24d7cfc5c13311abdc3f72" : "Staff I.C.", "511b6a78f5503881ba10ff93b7205ade" : "Create CM reversal", "74002cb040b036511b8d031da591364a" : "Ship to", "c6b4fd215b0cdcb7426519edc0ece828" : "Print Bambini Pro Forma Invoice", "b98c34417c412e0c87faa828f26b9123" : "Uninvoiced Total", "a0d036a1d6a00180df168fa86143e5f8" : "No invdetail found", "de3d17fb46f44fdf066581fbb5fe6113" : "Select Staff", "fbb9d6ec5325d0fe63c19431856a0802" : "Select cntct", "c3ce05eb16c5e0075b4a247b2c4b7bba" : "Bill To (select)", "ec53a8c4f07baed5d8825072c89799be" : "Status", "25d81668fca34c83d0720cc6365d62d6" : "Pre Tax discount", "b25f6c965342495f74899e183efe20a4" : "Void / Unpost", "58733ee735e3160c5c9fa5739fb4d056" : "Unposted", "3ec365dd533ddb7ef3d1c111186ce872" : "Details", "c04b33241cc5478500daf178e3720b63" : "No coitem found", "ea9cf7e47ff33b2be14e6dd07cbcefc6" : "Shipping", "871080cb9d00a8bda1b9f1db3c164341" : "Unit Cost", "820dbd2b8f606aff866c0bbfb6b737c1" : "Changed", "7ce96513eec175e6123b56573750b0dd" : "#reserved", "a0ec87054b5e5b7847d0d8780a01a3d5" : "Sum", "26e09a1ee1517389c7b07f42df65561a" : "Ordered", "bdd31bfe5374e3cdc19a10020eae4b49" : "Add Invoice", "801ab24683a4a8c433c6eb40c48bcd9d" : "Download", "44749712dbec183e983dcd78a7736c41" : "Date", "37656f0f6cf5e5befb1ec7abd3db5804" : "shipvia", "4a2a14210d78f0d82db75d0264030169" : "Supply From", "052fbb9431206b4755090dc53fcef300" : "Void Refund", "c4b515058fab313f403ae427ce7e32b3" : "Update Location to match S/O", "87813307f6e7498b30c5b3d9b2f65f56" : "Displaying invdetail{0} - {1} of {2}", "3a6a3353e3b44ad5359c8e3178b66a54" : "invcdate", "4b84bd35233c0d3d3c36b9a6ce6e0745" : "Order Items", "13abfee28b4564e3fb059420fbedbec5" : "Taxed", "94f475efc6722fd13ab78411c1ef7bd7" : "Sales Rep", "bb4af85913879b95661b81570a2c2e83" : "Discount (Posttax)", "526db6366257755024ed2556000871bc" : "Issue Refund", "594f5bdc5e1519ce9934d276e5bf081f" : "No events found", "d0cc96be641673ad48fc74374fda8137" : "Displaying coitem{0} - {1} of {2}", "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email", "b6dad11e8e2203819164d64fc82b40f1" : "Discount after Tax Description", "ea4788705e6873b424c65e91c2846b19" : "Cancel", "1b7132f58f9ee9de75e5778ff04f7303" : "Print Delivery Note", "4ee972120bcda675f75222c87cb9d356" : "Who", "a0947dda65e4112f49260243804b6528" : "Xfer all stock to HK", "1d144309cbdf2536723621bf0eac9f33" : "or enter Address", "3d96cc39e5517a284e203ffc8cafcf51" : "Print Bambini Pronto Invoice", "9c9745a343efeacc9efe9b7222b27afb" : "Ref#", "900eb3dcf3a7d639acbd2528ca5bbd52" : "Apply % Discount of : ", "e8586011952b0d098b0e568f20ca2b1f" : "Select Currency", "fa1cfdb383ea976facbdb20d40d2f811" : "Duplicate Selected", "6ac26fe4e9a39ac45fffe6d6920dac3a" : "Print Chinese Invoice", "182875b6c36a761f1e459624c1d93638" : "Profit", "3ffaf70863d6f46e2719050a37d9ef86" : "Order#", "8fb8fbc1c0bc53b2d01121344410e444" : "Split sales" }, "items" : [ { "listeners" : { "|show" : "function () {\n this.layout.getRegion('center').showPanel(0);\n}" }, "modal" : true, "collapsible" : false, "title" : "Edit / Create Sales Order", "xtype" : "LayoutDialog", "width" : 1050, "$ xns" : "Roo", "closable" : true, "resizable" : true, "height" : 620, "items" : [ { "alwaysShowTabs" : true, "xtype" : "LayoutRegion", "$ xns" : "Roo", "tabPosition" : "top", "* prop" : "center", "items" : [ { "xtype" : "Toolbar", "$ xns" : "Roo", "* prop" : "toolbar", "items" : [ { "xtype" : "Fill", "$ xns" : "Roo.Toolbar" }, { "listeners" : { "click" : "function ()\n{\n var id = 1* _this.form.findField('cohead_id').getValue();\n if (!id) {\n Roo.MessageBox.alert(\"Error\", \"Save Sales order first\");\n return;\n \n }\n // check current status of shipment..\n\n new Pman.Download({\n url : baseURL + '/Roo/cohead',\n method : 'GET',\n params : {\n cohead_id : id,\n _excel : 1\n },\n success : function() {\n\n }\n })\n \n \n \n}" }, "text" : "Download Excel", "xtype" : "Button", "cls" : "x-btn-text-icon", "$ icon" : "rootURL + '/Pman/templates/images/spreadsheet.gif'", "$ xns" : "Roo.Toolbar" }, { "listeners" : { "click" : "function ()\n{\n var id = 1* _this.form.findField('cohead_id').getValue();\n if (!id) {\n Roo.MessageBox.alert(\"Error\", \"Save Sales order first\");\n return;\n \n }\n // check current status of shipment..\n\n new Pman.Download({\n url : baseURL + '/Roo/cohead',\n method : 'GET',\n params : {\n cohead_id : id,\n _print : 1\n },\n success : function() {\n\n }\n })\n \n \n \n}" }, "text" : "Print", "xtype" : "Button", "cls" : "x-btn-text-icon", "$ icon" : "rootURL + '/Pman/templates/images/pdf.gif'", "$ xns" : "Roo.Toolbar" }, { "listeners" : { "click" : "function (_self, e)\n{\n\n _this.addShipmentBtn.fireEvent('click');\n \n}" }, "text" : "Add Shipment", "hidden" : true, "xtype" : "Button", "cls" : "x-btn-text-icon", "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'", "$ xns" : "Roo.Toolbar" }, { "listeners" : { "click" : "function (_self, e)\n{\n\n Pman.Dialog.XtupleCustomer.show({\n cust_id : _this.form.findField('cohead_cust_id').getValue()\n }); \n}" }, "text" : "Edit Customer", "xtype" : "Button", "cls" : "x-btn-text-icon", "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'", "$ xns" : "Roo.Toolbar" }, { "listeners" : { "click" : "function (_self, e)\n{\n\n _this.addInvoiceBtn.fireEvent('click');\n \n}" }, "text" : "Add Invoice", "hidden" : true, "xtype" : "Button", "cls" : "x-btn-text-icon", "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'", "$ xns" : "Roo.Toolbar" }, { "listeners" : { "render" : "function (_self, e)\n{\n _this.voidBtn = _self;\n}", "click" : "function (_self, e)\n{\n var p = { \n cohead_id : _this.form.findField('cohead_id').getValue() \n };\n function call() {\n\n \n new Pman.Request({\n mask : 'Sending',\n url: baseURL + '/Roo/cohead',\n method : 'POST',\n params : p,\n success : function()\n {\n _this.callback();\n if ( _this.data.cohead_status == 'X') {\n _this.form.load({ method: 'GET', params: { '_id' : _this.data.cohead_id }});\n \n return;\n }\n\n \n _this.dialog.hide();\n }\n });\n }\n\n \n if (_this.data.cohead_status == 'X') {\n p._unvoid = 1;\n call();\n return;\n }\n \n Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to void this?\", function(r) {\n \n if (r !='yes') {\n return;\n }\n p._void = 1;\n call(); \n\n \n });\n\n}" }, "text" : "Void", "xtype" : "Button", "$ xns" : "Roo.Toolbar" }, { "listeners" : { "render" : "function (_self)\n{\n _this.closeBtn = _self;\n}", "click" : "function (_self, e)\n{\n var p = { cohead_id : _this.form.findField('cohead_id').getValue() };\n \n var close = 1;\n if (_this.data.cohead_status == 'C') {\n p._reopen = 1;\n close = 0;\n } else {\n p._close = 1;\n }\n \n new Pman.Request({\n url: baseURL + '/Roo/cohead',\n method : 'POST',\n params : p,\n mask : 'Sending',\n success : function()\n {\n _this.callback();\n if (!close) {\n _this.form.load({ method: 'GET', params: { '_id' : _this.data.cohead_id }});\n \n return;\n }\n \n _this.dialog.hide();\n }\n });\n \n}" }, "text" : "Completed", "xtype" : "Button", "$ xns" : "Roo.Toolbar" } ] } ] }, { "listeners" : { "activate" : "function (_self)\n{\n // we need to reload to find out the subtotal.\n if (!_this.data || !_this.data.cohead_id) {\n return;\n }\n new Pman.Request({\n method : 'GET',\n url : baseURL + '/Roo/cohead',\n params : { \n _id : _this.data.cohead_id\n },\n success : function(res) {\n _this.form.findField('cohead_subtotal').setValue(res.data.cohead_subtotal);\n _this.form.findField('cohead_tax').setValue(res.data.cohead_tax);\n _this.form.findField('cohead_uninvoiced').setValue(res.data.cohead_uninvoiced);\n _this.form.findField('cohead_unshipped').setValue(res.data.cohead_unshipped);\n _this.form.findField('cohead_pretax_discount').setValue(res.data.cohead_pretax_discount); \n _this.form.findField('cohead_total').recalc(); \n _this.form.findField('cohead_misc').recalc(); \n }\n });\n}" }, "region" : "center", "xtype" : "ContentPanel", "title" : "Order Details", "$ xns" : "Roo", "items" : [ { "listeners" : { "actionfailed" : "function (_self, action)\n{\n if (action.failureType == 'client') {\n Roo.MessageBox.alert(\"Error\", \"Fill in all the required fields\");\n }\n if (action.failureType == 'server') { \n Roo.log(action);\n Roo.MessageBox.alert(\"Error\", action.result.errorMsg);\n }\n _this.dialog.layout.getRegion('center').showPanel(0);\n}", "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n // clear the stock level cache...\n _this.stockcache = [];\n \n _this.form.findField('billto_email').setValue('');\n \n _this.reversalBtn.hide();\n \n if (_this.data.cohead_id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.cohead_id }});\n \n return;\n }\n _this.dialog.setTitle(\"Edit New Sales Order\");\n \n _this.closeBtn.hide();\n _this.voidBtn.hide();\n _this.saveBtn.show();\n \n if(_this.data.cohead_billto_cntct_id_cntct_id){\n _this.form.findField('billto_address').update();\n \r\n _this.form.setValues({\r\n cohead_billto_cntct_id: _this.data.cohead_billto_cntct_id_cntct_id,\r\n cohead_billto_cntct_id_cntct_name : _this.data.cohead_billto_cntct_id_cntct_name,\r\n _shipto_same : 1,\n _same_as_order : 1\n \r\n }); \r\n }\n \n return;\n }\n if (action.type == 'load') {\n \n \n _this.data = action.result.data;\n\n if (!_this.data.cohead_shipto_id && _this.data.shipto_id*1 > 0) {\n _this.form.findField('cohead_shipto_id').setValue(_this.data.shipto_id);\n _this.form.findField('cohead_shipto_id_shipto_name').setValue(_this.data.cohead_shipto_cntct_id_cntct_name);\n \n }\n \n \n _this.dataloading = true;\n if (_this.data.cohead_shipto_cntct_id == _this.data.cohead_billto_cntct_id) {\n this.findField('_shipto_same').setValue(1);\n Roo.log(\"set shipto 1\");\n } else {\n this.findField('_shipto_same').setValue(0);\n Roo.log(\"set shipto 0\");\n }\n _this.dataloading = false; \n \n \n this.findField('billto_address').update();\n this.findField('shipto_address').update(); \n _this.dialog.setTitle(\"Edit Sales Order - \" + this.findField('cohead_number').getValue());\n \n \n if (_this.data.cohead_status == 'C') {\n _this.closeBtn.show();\n _this.closeBtn.setText('Re-open');\n _this.voidBtn.hide();\n _this.saveBtn.hide();\n _this.reversalBtn.show();\n } else if (_this.data.cohead_status == 'X') {\n _this.closeBtn.hide(); \n _this.voidBtn.show(); \n _this.voidBtn.setText(\"Un-void / Re-open\"); \n _this.saveBtn.hide();\n } else {\n // it's open\n _this.closeBtn.show(); \n _this.closeBtn.setText('Complete and Close'); \n _this.voidBtn.setText(\"Void\"); \n _this.voidBtn.show(); \n _this.saveBtn.show(); \n }\n \n _this.form.findField('cohead_misc_per').update();\n \n // finally override the value for discount...\n if ((''+ _this.data.cohead_misc_descrip).length) {\n _this.form.findField('cohead_misc_descrip').setValue(_this.data.cohead_misc_descrip);\n }\n \n // update the stockcache...\n\n new Pman.Request({\n url : baseURL + '/Roo/cohead',\n method : 'GET',\n params : {\n _stockLevel : _this.data.cohead_id\n },\n success : function(res) \n {\n for (var i in res.data) {\n \n if(typeof(_this.stockcache[res.data[i].item]) == 'undefined'){\n _this.stockcache[res.data[i].item] = res.data[i];\n }\n }\n }\n });\n \n return;\n }\n if (action.type =='submit') {\n \n\n var id = _this.form.findField('cohead_id').getValue() * 1;\n if (id < 1) {\n\n _this.data.cohead_id = action.result.data.cohead_id;\n this.load({ method: 'GET', params: { '_id' : _this.data.cohead_id }});\n return;\n }\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n", "|rendered" : "function (form)\n{\n _this.form= form;\n}\n" }, "$ url" : "baseURL + '/Roo/cohead.php'", "xtype" : "Form", "method" : "POST", "style" : "margin:10px;", "$ xns" : "Roo.form", "items" : [ { "xtype" : "Column", "width" : 435, "$ xns" : "Roo.form", "items" : [ { "legend" : "Order", "xtype" : "FieldSet", "style" : "width:420px", "labelWidth" : 120, "$ xns" : "Roo.form", "items" : [ { "xtype" : "Column", "labelWidth" : 100, "width" : 410, "$ xns" : "Roo.form", "items" : [ { "xtype" : "Row", "labelWidth" : 100, "width" : 400, "$ xns" : "Roo.form", "items" : [ { "fieldLabel" : "Order#", "emptyText" : "Automatic", "xtype" : "TextField", "allowBlank" : true, "readOnly" : true, "width" : 120, "$ xns" : "Roo.form", "name" : "cohead_number" }, { "style" : "float:left", "xtype" : "Row", "labelWidth" : 50, "width" : 150, "$ xns" : "Roo.form", "items" : [ { "fieldLabel" : "Cust#", "xtype" : "TextField", "allowBlank" : true, "readOnly" : true, "width" : 110, "$ xns" : "Roo.form", "name" : "cohead_cust_id_cust_number" } ] } ] }, { "listWidth" : 400, "triggerAction" : "all", "forceSelection" : true, "fieldLabel" : "Customer", "selectOnFocus" : true, "pageSize" : 20, "hiddenName" : "cohead_cust_id", "minChars" : 2, "valueField" : "cust_id", "xtype" : "TextField", "readOnly" : true, "typeAhead" : true, "editable" : false, "width" : 300, "$ xns" : "Roo.form", "name" : "cohead_cust_id_cust_name", "qtip" : "Select custinfo", "queryParam" : "query[cust_name]", "tpl" : "