Roo.log('setdata');
Roo.log(_this.data);
// reversal...
+ _this.toLocation._is_internalcompany = false;
_this.grid.setColumns();
_this.saveBtn.show();
if (_this.data.createFromRev) {
this.findField('_roo_office').setValue( _this.data._roo_office );
Roo.log(action);
_this.data = action.result.data;
+
+ _this.toLocation._is_internalcompany = true;
+ if(!_this.data.cust_to_internalcompany || !_this.data.cust_to_internalcompany.length){
+ _this.toLocation._is_internalcompany = false;
+ }
+
if(_this.data.invhist_transfer_void){
_this.saveBtn.hide();
}
{
xtype: 'ComboBox',
xns: Roo.form,
+ actionMode : 'fieldEl',
allowBlank : true,
displayField : 'desc',
editable : false,
if((!_this.data.cust_to_internalcompany || !_this.data.cust_to_internalcompany.length) && !_this.toLocation._is_internalcompany){
cm.setHidden(cid('invhist_transfer_item_unit_price'), true);
cm.setHidden(cid('invhist_transfer_item_unit_price_default'), true);
+ _this.form.findField('invhist_transfer_price').hide();
return;
}
cm.setHidden(cid('invhist_transfer_item_unit_price'), false);
cm.setHidden(cid('invhist_transfer_item_unit_price_default'), false);
+ _this.form.findField('invhist_transfer_price').show();
},
sm : {
xtype: 'CellSelectionModel',
xtype: 'HttpProxy',
xns: Roo.data,
method : 'GET',
- timeout : 90000,
+ timeout : 180000,
url : baseURL + '/Xtuple/Roo/invhist_transfer_item.php'
},
reader : {
new Pman.Download({
url : baseURL + '/Xtuple/Roo/invhist_transfer',
method : 'GET',
+ timeout : 90000,
params : {
_roo_office : _this.form.findField('_roo_office').getValue(),
_download : _this.data.invhist_transfer_id