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;",
42 "fieldLabel" : "Code",
43 "xtype" : "TextField",
50 "fieldLabel" : "Description",
54 "name" : "terms_descrip"
57 "fieldLabel" : "Due Days",
58 "Boolean allowDecimals" : true,
59 "xtype" : "NumberField",
60 "decimalPrecision" : 0,
63 "name" : "terms_duedays"
66 "fieldLabel" : "Discount Day",
67 "Boolean allowDecimals" : true,
68 "xtype" : "NumberField",
69 "decimalPrecision" : 0,
72 "name" : "terms_discdays"
75 "fieldLabel" : "Cut Off Day",
76 "xtype" : "NumberField",
77 "Boolean allowDecimals" : true,
78 "decimalPrecision" : 0,
81 "name" : "terms_cutoffday"
84 "Boolean checked" : true,
85 "fieldLabel" : "Used in Payables",
89 "String inputValue" : true,
93 "Boolean checked" : true,
94 "fieldLabel" : "Used in Receivables",
98 "String inputValue" : true,
103 "$ xns" : "Roo.form",
105 "name" : "terms_type"
109 "$ xns" : "Roo.form",
118 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
123 "* prop" : "buttons[]"
127 "click" : "function (_self, e)\n{\n // do some checks?\n \n \n \n _this.form.doAction(\"submit\");\n\n}"
132 "* prop" : "buttons[]"