"collapsible" : false,
"title" : "Create / Edit Terms",
"xtype" : "LayoutDialog",
- "width" : 500,
+ "width" : 550,
"$ xns" : "Roo",
"closable" : false,
"resizable" : false,
- "height" : 550,
+ "height" : 300,
"items" : [
{
"xtype" : "LayoutRegion",
"method" : "POST",
"style" : "margin:10px;",
"$ xns" : "Roo.form",
+ "Number labelWidth" : 150,
"items" : [
- {
- "legend" : "Details",
- "style" : "width:420px",
- "xtype" : "FieldSet",
- "$ xns" : "Roo.form",
- "items" : [
- {
- "fieldLabel" : "First Name",
- "xtype" : "TextField",
- "allowBlank" : false,
- "width" : 300,
- "$ xns" : "Roo.form",
- "name" : "cntct_first_name"
- },
- {
- "fieldLabel" : "Last Name",
- "xtype" : "TextField",
- "width" : 300,
- "$ xns" : "Roo.form",
- "name" : "cntct_last_name"
- },
- {
- "fieldLabel" : "Phone",
- "xtype" : "TextField",
- "$ regex" : "/^[0-9 +-]+$/",
- "width" : 300,
- "$ xns" : "Roo.form",
- "name" : "cntct_phone"
- },
- {
- "fieldLabel" : "Alt",
- "xtype" : "TextField",
- "$ regex" : "/^[0-9 +-]+$/",
- "width" : 300,
- "$ xns" : "Roo.form",
- "name" : "cntct_phone2"
- },
- {
- "Boolean allowBlank" : false,
- "fieldLabel" : "Email",
- "vtype" : "email",
- "xtype" : "TextField",
- "width" : 300,
- "$ xns" : "Roo.form",
- "name" : "cntct_email"
- },
- {
- "fieldLabel" : "Password",
- "xtype" : "TextField",
- "String inputType" : "password",
- "width" : 300,
- "$ xns" : "Roo.form",
- "name" : "password"
- },
- {
- "fieldLabel" : "Confirm PW",
- "xtype" : "TextField",
- "String inputType" : "password",
- "width" : 300,
- "$ xns" : "Roo.form",
- "name" : "password2"
- },
- {
- "Boolean checked" : true,
- "fieldLabel" : "Active",
- "xtype" : "Checkbox",
- "valueOff" : 0,
- "$ xns" : "Roo.form",
- "String inputValue" : true,
- "name" : "cntct_active"
- }
- ]
- },
{
"fieldLabel" : "Code",
"xtype" : "TextField",
"name" : "terms_descrip"
},
{
+ "Boolean allowBlank" : false,
"fieldLabel" : "Due Days",
+ "Boolean allowDecimals" : true,
"xtype" : "NumberField",
+ "decimalPrecision" : 0,
+ "width" : 300,
+ "$ xns" : "Roo.form",
+ "Mixed value" : 0,
+ "name" : "terms_duedays",
+ "Number minValue" : 0
+ },
+ {
+ "fieldLabel" : "Discount Day",
"Boolean allowDecimals" : true,
+ "xtype" : "NumberField",
"decimalPrecision" : 0,
- "width" : 200,
+ "width" : 300,
"$ xns" : "Roo.form",
- "name" : "cashrcpt_amount"
+ "Mixed value" : 0,
+ "name" : "terms_discdays",
+ "Number minValue" : 0
},
{
- "fieldLabel" : "Due Days",
- "xtype" : "TextField",
- "$ regex" : "/^[0-9 +-]+$/",
+ "fieldLabel" : "Cut Off Day",
+ "xtype" : "NumberField",
+ "Boolean allowDecimals" : true,
+ "decimalPrecision" : 0,
"width" : 300,
"$ xns" : "Roo.form",
- "name" : "terms_duedays"
+ "Mixed value" : 0,
+ "name" : "terms_cutoffday",
+ "Number minValue" : 0
},
{
- "xtype" : "Hidden",
+ "Boolean checked" : true,
+ "fieldLabel" : "Used in Payables",
+ "xtype" : "Checkbox",
+ "valueOff" : 0,
+ "$ xns" : "Roo.form",
+ "String inputValue" : true,
+ "name" : "terms_ap"
+ },
+ {
+ "Boolean checked" : true,
+ "fieldLabel" : "Used in Receivables",
+ "xtype" : "Checkbox",
+ "valueOff" : 0,
"$ xns" : "Roo.form",
- "Mixed value" : "D",
- "name" : "terms_type"
+ "String inputValue" : true,
+ "name" : "terms_ar"
},
{
"xtype" : "Hidden",