Commit 43923303 authored by Darming's avatar Darming

[refactor]核销收款

parent 7d509a13
......@@ -57,23 +57,13 @@
record.set('write_off_flag', 'DISABLED');
var paid_byother_flag = record.get('paid_byother_flag');
if (paid_byother_flag == 'T') {
//代付非保证金类 --> 直接从银行过账到预收科目
if (record.get('collection_classes') == 'DEPOSIT') {
record.set('transaction_type', 'DEPOSIT');
} else {
record.set('transaction_type', 'ADVANCE_RECEIPT');
}
} else if (paid_byother_flag == 'F') {
if (record.get('collection_classes') == 'DEPOSIT') {
record.set('transaction_type', 'DEPOSIT');
} else {
record.set('transaction_type', 'RECEIPT');
}
if (record.get('collection_classes') == 'DEPOSIT') {
record.set('transaction_type', 'DEPOSIT');
} else {
record.set('transaction_type', 'RECEIPT');
}
if(!record.get('transaction_type')){
if (!record.get('transaction_type')) {
continue;
}
......@@ -100,10 +90,10 @@
//关闭该导入的界面
backBtn();
},
failure:function(){
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error:function(){
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}
});
......@@ -115,22 +105,7 @@
}
function update_import_data(ds, record, name, value, oldvalue) {
if (name == 'paid_byother_flag') {
if (value == 'T') {
//代付非保证金类 --> 直接从银行过账到预收科目
if (record.get('collection_classes') == 'DEPOSIT') {
record.set('transaction_type', 'DEPOSIT');
} else {
record.set('transaction_type', 'ADVANCE_RECEIPT');
}
} else if (value == 'F') {
if (record.get('collection_classes') == 'DEPOSIT') {
record.set('transaction_type', 'DEPOSIT');
} else {
record.set('transaction_type', 'RECEIPT');
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment