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 "Boolean allowBlank" : false,
59 "fieldLabel" : "Due Days",
60 "Boolean allowDecimals" : true,
61 "xtype" : "NumberField",
62 "decimalPrecision" : 0,
66 "name" : "terms_duedays",
70 "fieldLabel" : "Discount Day",
71 "Boolean allowDecimals" : true,
72 "xtype" : "NumberField",
73 "decimalPrecision" : 0,
77 "name" : "terms_discdays",
81 "fieldLabel" : "Cut Off Day",
82 "xtype" : "NumberField",
83 "Boolean allowDecimals" : true,
84 "decimalPrecision" : 0,
88 "name" : "terms_cutoffday",
92 "Boolean checked" : true,
93 "fieldLabel" : "Used in Payables",
97 "String inputValue" : true,
101 "Boolean checked" : true,
102 "fieldLabel" : "Used in Receivables",
103 "xtype" : "Checkbox",
105 "$ xns" : "Roo.form",
106 "String inputValue" : true,
111 "$ xns" : "Roo.form",
120 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
125 "* prop" : "buttons[]"
129 "click" : "function (_self, e)\n{\n // do some checks?\n \n \n \n _this.form.doAction(\"submit\");\n\n}"
134 "* prop" : "buttons[]"