Commit ebc4a54e authored by lizhe's avatar lizhe

收款核销自动匹配

parent adae9911
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
-- Call the procedure
csh_transaction_interface_pkg.auto_assign_write_off(p_transaction_id =>${/parameter/@transaction_id},
p_company_id =>${/session/@company_id},
p_user_id =>${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -382,35 +382,58 @@
}
}
var win = new Leaf.Window({
id: 'csh_write_off_window',
params: {
transaction_id: record.get('transaction_id'),
depositDisplayFlag: depositDisplayFlag,
bank_slip_num: record.get('bank_slip_num'),
company_id: record.get('company_id'),
transaction_date: Leaf.formatDate(record.get('transaction_date')),
internal_period_num: record.get('internal_period_num'),
period_name: record.get('period_name'),
bp_bank_account_num: record.get('bp_bank_account_num'),
bp_bank_account_name: record.get('bp_bank_account_name'),
bp_id: record.get('bp_id'),
advanceDisplayFlag: advanceDisplayFlag,
readOnly: readOnly,
interfaceQueryFlag: interfaceQueryFlag,
approval_flag: approval_flag,
collection_classes:record.get('collection_classes'),
transaction_type:transaction_type||'RECEIPT',
winid: 'csh_write_off_window'
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
url: '${/request/@context_path}/autocrud/csh.CSH531N.auto_assign_write_off/execute',
para: {
transaction_id: record.get('transaction_id')
},
url: $('batch_detail_link').getUrl(),
title: '明细',
fullScreen: true
});
success: function(res) {
Leaf.Masker.unmask(Ext.getBody());
var win = new Leaf.Window({
id: 'csh_write_off_window',
params: {
transaction_id: record.get('transaction_id'),
depositDisplayFlag: depositDisplayFlag,
bank_slip_num: record.get('bank_slip_num'),
company_id: record.get('company_id'),
transaction_date: Leaf.formatDate(record.get('transaction_date')),
internal_period_num: record.get('internal_period_num'),
period_name: record.get('period_name'),
bp_bank_account_num: record.get('bp_bank_account_num'),
bp_bank_account_name: record.get('bp_bank_account_name'),
bp_id: record.get('bp_id'),
advanceDisplayFlag: advanceDisplayFlag,
readOnly: readOnly,
interfaceQueryFlag: interfaceQueryFlag,
approval_flag: approval_flag,
collection_classes:record.get('collection_classes'),
transaction_type:transaction_type||'RECEIPT',
winid: 'csh_write_off_window'
},
url: $('batch_detail_link').getUrl(),
title: '明细',
fullScreen: true
});
win.on('close', function () {
ds.query(ds.currentPage);
win.on('close', function () {
ds.query(ds.currentPage);
});
},
failure: function() {
Leaf.Masker.unmask(Ext.getBody());
},
error: function() {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}
function csh531n_detail_renderer(value, record, name) {
......
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