Commit 0dfa9f42 authored by homunculus's avatar homunculus

[feat] 发票确认

parent d0912507
WHENEVER SQLERROR EXIT FAILURE ROLLBACK;
WHENEVER OSERROR EXIT FAILURE ROLLBACK;
spool INITIALIZE_SYSCODE_CLAIM_STATUS.log
set feedback off
set define off
begin
sys_code_pkg.delete_sys_code('claim_status');
sys_code_pkg.insert_sys_code('claim_status','认领状态','认领状态','认领状态','ZHS','');
sys_code_pkg.insert_sys_code_value('claim_status','未认领','未认领','ZHS');
sys_code_pkg.insert_sys_code_value('claim_status','认领中','认领中','ZHS');
sys_code_pkg.insert_sys_code_value('claim_status','已确认','已确认','ZHS');
sys_code_pkg.insert_sys_code_value('claim_status','认领退回','认领退回','ZHS');
end;
/
commit;
set feedback on
set define on
spool off
exit
\ No newline at end of file
alter table acr_invoice_hd add claim_status varchar2(30);
comment on column acr_invoice_hd.claim_status
is '认领状态';
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
SELECT t1.document_number,
t1.contract_id,
t1.contract_number,
t1.contract_name,
t2.cf_item,
t2.write_off_flag,
t1.total_amount,
t1.invoice_title,
t1.invoice_kind,
t1.invoice_kind_desc,
t1.invoice_status,
t1.invoice_status_desc,
t1.invoice_number,
t1.bp_agent_name,
t1.vat_invoice_code,
TO_CHAR(t1.invoice_date, 'yyyy-mm-dd') as invoice_date,
t1.invoice_bp_id,
t1.invoice_bp_code,
t1.invoice_bp_name,
t1.tax_amount,
t1.net_amount,
t1.currency,
t1.created_by_name,
t1.created_by,
t1.vat_interface_status_desc,
t1.vat_interface_status,
to_char(t1.accounting_date, 'yyyy-mm-dd') as accounting_date,
t1.CREATE_JE_FLAG,
t1.bp_tax_registry_num,
t1.claim_status
FROM acr_invoice_hd_v t1, acr_invoice_contract_cf_v t2
#WHERE_CLAUSE#
ORDER BY t1.invoice_date desc , t1.document_number desc
]]></bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
]]></bm:update-sql>
</bm:operation>
</bm:operations>
<bm:data-filters>
<bm:data-filter enforceOperations="query" expression="t1.contract_id = t2.contract_id"/>
<bm:data-filter enforceOperations="query" expression="t2.write_off_flag = &apos;FULL&apos;"/>
</bm:data-filters>
</bm:model>
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