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