Commit bde74cd0 authored by 18083's avatar 18083

保证金入账核销日期调整

parent 1f3c9465
......@@ -30,5 +30,10 @@
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select hlcm_cux_deposit_pkg.deposit_extend_month(p_transaction_id => ${@transaction_id}) check_flag from dual
]]></bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -14,6 +14,7 @@
<a:model-query fetchAll="true" model="csh.CSH511.fnd_financial_option" rootPath="fnd_financial_option_path"/>
<a:model-query fetchAll="true" model="csh.CSH511.csh_transaction_default_exchange_rate_type"
rootPath="default_exchange_rate_type_path"/>
<a:model-query model="cus_deposit/CUS_DEPOSIT100.csh_transaction_deposit_entry_write_off" rootPath="deposit_extend_month" />
</a:init-procedure>
<a:view>
<a:link id="hn2050_upload_win_link" url="${/request/@context_path}/uploadFile.lview"/>
......@@ -34,7 +35,7 @@
$('${/parameter/@winId}').close();
}
function cshdeposit100_receipt_submit() {
if ($('deposit_ertry_detail_result_ds').validate()) {
if ($('deposit_ertry_detail_result_ds').validate()) {
var head_record = $('csh_transaction_receipt_head_ds').getAt(0);
var deposit_records = $('deposit_ertry_detail_result_ds').getAll();
var param = {};
......@@ -51,7 +52,12 @@
var deposit_record;
deposit_record = deposit_records[i];
deposit_record.set('_status', 'insert');
//收款日期跨月则取系统当前时间,否则取收款日期 18083 2023/6/27
if ('${/model/deposit_extend_month/record/@check_flag}' =='Y'){
deposit_record.set('write_off_date',new Date().format('yyyy/mm/dd'));
}else{
deposit_record.set('write_off_date', head_record.get('transaction_date'));
}
deposit_record.set('transaction_id', '${/parameter/@transaction_id}');
deposit_record.set('bp_id_agent_level1', '${/parameter/@bp_id}');
saveData.push(deposit_record.data);
......
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