2 "name" : "Pman.Dialog.XtupleTerms",
5 "path" : "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleTerms.bjs",
11 "collapsible" : false,
12 "title" : "Create / Edit Terms",
13 "xtype" : "LayoutDialog",
21 "xtype" : "LayoutRegion",
27 "xtype" : "ContentPanel",
32 "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n if (_this.data.id) { \n this.load({ method: 'GET', params: { _id : _this.data.id}});\n return;\n }\n \n return;\n }\n if (action.type == 'load') {\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n \n _this.form.reset();\n return;\n }\n}\n",
33 "|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
35 "$ url" : "baseURL + '/Roo/terms.php'",
38 "style" : "margin:10px;",
40 "Number labelWidth" : 150,
43 "fieldLabel" : "Code",
44 "xtype" : "TextField",
51 "fieldLabel" : "Description",
55 "name" : "terms_descrip"
58 "fieldLabel" : "Due Days",
59 "Boolean allowDecimals" : true,
60 "xtype" : "NumberField",
61 "decimalPrecision" : 0,
64 "name" : "terms_duedays"
67 "fieldLabel" : "Discount Day",
68 "Boolean allowDecimals" : true,
69 "xtype" : "NumberField",
70 "decimalPrecision" : 0,
73 "name" : "terms_discdays"
76 "fieldLabel" : "Cut Off Day",
77 "xtype" : "NumberField",
78 "Boolean allowDecimals" : true,
79 "decimalPrecision" : 0,
82 "name" : "terms_cutoffday"
85 "Boolean checked" : true,
86 "fieldLabel" : "Used in Payables",
90 "String inputValue" : true,
94 "Boolean checked" : true,
95 "fieldLabel" : "Used in Receivables",
99 "String inputValue" : true,
104 "$ xns" : "Roo.form",
106 "name" : "terms_type"
110 "$ xns" : "Roo.form",
119 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
124 "* prop" : "buttons[]"
128 "click" : "function (_self, e)\n{\n // do some checks?\n \n \n \n _this.form.doAction(\"submit\");\n\n}"
133 "* prop" : "buttons[]"