Commit d333231c authored by stone's avatar stone

【feat】 完成金税接口导入导出功能

parent 9b8fcc77
WHENEVER SQLERROR EXIT FAILURE ROLLBACK; -- Create table
WHENEVER OSERROR EXIT FAILURE ROLLBACK; create table ACR_INVOICE_BATCH_LN
(
invoice_batch_ln_id NUMBER not null,
invoice_hd_id NUMBER not null,
line_type VARCHAR2(30) not null,
line_number NUMBER,
cashflow_id NUMBER,
cf_item NUMBER,
cf_type NUMBER,
product_id NUMBER,
product_name VARCHAR2(2000),
specification VARCHAR2(2000),
quantity NUMBER,
uom VARCHAR2(30),
price NUMBER,
price_quantity NUMBER,
price_quantity_uom VARCHAR2(30),
net_price NUMBER,
tax_type_id NUMBER,
tax_type_rate NUMBER,
tax_included_flag VARCHAR2(1),
tax_amount NUMBER,
net_amount NUMBER,
total_amount NUMBER,
responsibility_center_id NUMBER,
account_id NUMBER,
description VARCHAR2(1000),
ref_v01 VARCHAR2(2000),
ref_v02 VARCHAR2(2000),
ref_v03 VARCHAR2(2000),
ref_v04 VARCHAR2(2000),
ref_v05 VARCHAR2(2000),
ref_v06 VARCHAR2(2000),
ref_v07 VARCHAR2(2000),
ref_v08 VARCHAR2(2000),
ref_v09 VARCHAR2(2000),
ref_v10 VARCHAR2(2000),
ref_n01 NUMBER,
ref_n02 NUMBER,
ref_n03 NUMBER,
ref_n04 NUMBER,
ref_n05 NUMBER,
ref_n06 NUMBER,
ref_n07 NUMBER,
ref_n08 NUMBER,
ref_n09 NUMBER,
ref_n10 NUMBER,
ref_d01 DATE,
ref_d02 DATE,
ref_d03 DATE,
ref_d04 DATE,
ref_d05 DATE,
created_by NUMBER,
creation_date DATE,
last_updated_by NUMBER,
last_update_date DATE,
lease_channel VARCHAR2(30)
);
spool ACP_INVOICE_LN.log -- Add comments to the table
comment on table ACR_INVOICE_BATCH_LN
PROMPT is '应收发票行(行合并)';
PROMPT CREATING TABLE TRAIN_CONFIG -- Add comments to the columns
PROMPT ============================ comment on column ACR_INVOICE_BATCH_LN.invoice_batch_ln_id
PROMPT is '发票行ID';
WHENEVER SQLERROR CONTINUE comment on column ACR_INVOICE_BATCH_LN.invoice_hd_id
DROP TABLE ACP_INVOICE_LN; is '发票ID';
WHENEVER SQLERROR EXIT FAILURE ROLLBACK comment on column ACR_INVOICE_BATCH_LN.line_type
is '行类型';
alter table acp_invoice_ln add (CONTRACT_NAME varchar2(200)); comment on column ACR_INVOICE_BATCH_LN.line_number
comment on column acp_invoice_ln.CONTRACT_NAME is '合同名称'; is '行号';
comment on column ACR_INVOICE_BATCH_LN.cashflow_id
alter table acp_invoice_ln add (BP_NAME varchar2(200)); is '现金流ID';
comment on column acp_invoice_ln.BP_NAME is '客户名称'; comment on column ACR_INVOICE_BATCH_LN.cf_item
is '现金流项目';
alter table acp_invoice_ln add (CONTRACT_STATUS varchar2(30)); comment on column ACR_INVOICE_BATCH_LN.cf_type
comment on column acp_invoice_ln.CONTRACT_STATUS is '合同状态'; is '现金流类型';
comment on column ACR_INVOICE_BATCH_LN.product_id
alter table acp_invoice_ln add (CONFIRMATION_STATUS varchar2(30)); is '商品ID';
comment on column acp_invoice_ln.CONFIRMATION_STATUS is '确认状态'; comment on column ACR_INVOICE_BATCH_LN.product_name
is '商品名称';
comment on column ACR_INVOICE_BATCH_LN.specification
is '规格型号';
comment on column ACR_INVOICE_BATCH_LN.quantity
SPOOL OFF is '数量';
comment on column ACR_INVOICE_BATCH_LN.uom
EXIT is '计量单位';
\ No newline at end of file comment on column ACR_INVOICE_BATCH_LN.price
is '单价(金税能算就不使用)';
comment on column ACR_INVOICE_BATCH_LN.price_quantity
is '价格数量(暂不需要)';
comment on column ACR_INVOICE_BATCH_LN.price_quantity_uom
is '价格数量单位(暂不需要)';
comment on column ACR_INVOICE_BATCH_LN.net_price
is '税前单价';
comment on column ACR_INVOICE_BATCH_LN.tax_type_id
is '税种';
comment on column ACR_INVOICE_BATCH_LN.tax_type_rate
is '税率';
comment on column ACR_INVOICE_BATCH_LN.tax_included_flag
is '含税标志';
comment on column ACR_INVOICE_BATCH_LN.tax_amount
is '税额';
comment on column ACR_INVOICE_BATCH_LN.net_amount
is '税前金额';
comment on column ACR_INVOICE_BATCH_LN.total_amount
is '含税金额';
comment on column ACR_INVOICE_BATCH_LN.responsibility_center_id
is '责任中心';
comment on column ACR_INVOICE_BATCH_LN.account_id
is '科目';
comment on column ACR_INVOICE_BATCH_LN.description
is '行备注/行摘要';
comment on column ACR_INVOICE_BATCH_LN.created_by
is '创建者';
comment on column ACR_INVOICE_BATCH_LN.creation_date
is '创建日期';
comment on column ACR_INVOICE_BATCH_LN.last_updated_by
is '最后更新者';
comment on column ACR_INVOICE_BATCH_LN.last_update_date
is '最后更新日期';
comment on column ACR_INVOICE_BATCH_LN.lease_channel
is '商业模式';
alter table ACR_INVOICE_BATCH_LN
add constraint ACR_INVOICE_BATCH_LN_PK primary key (INVOICE_BATCH_LN_ID);
CREATE SEQUENCE ACR_INVOICE_BATCH_LN_s;
\ No newline at end of file
...@@ -4,3 +4,16 @@ is '认领状态'; ...@@ -4,3 +4,16 @@ is '认领状态';
alter table acr_invoice_hd add (invoice_code varchar2(200)); alter table acr_invoice_hd add (invoice_code varchar2(200));
comment on column acr_invoice_hd.invoice_code is '发票代码'; comment on column acr_invoice_hd.invoice_code is '发票代码';
ALTER TABLE acr_invoice_hd ADD merge_flag VARCHAR2(30) default 'N';
ALTER TABLE acr_invoice_hd ADD status VARCHAR2(20);
ALTER TABLE acr_invoice_hd ADD batch_id NUMBER ;
ALTER TABLE acr_invoice_hd ADD ref_merge_flag VARCHAR2(30);
comment on column ACR_INVOICE_HD.merge_flag
is '是否进行行合并';
comment on column ACR_INVOICE_HD.status
is '审批状态';
comment on column ACR_INVOICE_HD.batch_id
is '审批批次ID';
\ No newline at end of file
...@@ -27,4 +27,7 @@ ...@@ -27,4 +27,7 @@
<bm:query-field field="contract_number" queryOperator="like"/> <bm:query-field field="contract_number" queryOperator="like"/>
<bm:query-field field="contract_name" queryOperator="like"/> <bm:query-field field="contract_name" queryOperator="like"/>
</bm:query-fields> </bm:query-fields>
<bm:data-filters>
<bm:data-filter name="data_class" expression="t.data_Class=&apos;NORMAL&apos;"/>
</bm:data-filters>
</bm:model> </bm:model>
...@@ -12,7 +12,16 @@ ...@@ -12,7 +12,16 @@
</bm:operations> </bm:operations>
<bm:fields> <bm:fields>
<bm:field name="invoice_hd_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_HD_ID"/> <bm:field name="invoice_hd_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_HD_ID"/>
<bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="bp_code"/>
<bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="description"/>
<bm:field name="vat_red_notice_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="vat_red_notice_num"/>
<bm:field name="ref_vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ref_vat_invoice_code"/>
<bm:field name="ref_invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ref_invoice_number"/>
<bm:field name="created_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="created_by_name"/>
<bm:field name="confirmed_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="confirmed_by_name"/>
<bm:field name="invoice_kind_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_KIND_N"/> <bm:field name="invoice_kind_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_KIND_N"/>
<bm:field name="invoice_title" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="invoice_title"/>
<bm:field name="invoice_bp_address_phone_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="invoice_bp_address_phone_num"/>
<bm:field name="document_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_NUMBER"/> <bm:field name="document_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_NUMBER"/>
<bm:field name="invoice_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_DATE"/> <bm:field name="invoice_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_DATE"/>
<bm:field name="invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_NUMBER"/> <bm:field name="invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_NUMBER"/>
...@@ -21,6 +30,7 @@ ...@@ -21,6 +30,7 @@
<bm:field name="bp_address_phone_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ADDRESS_PHONE_NUM"/> <bm:field name="bp_address_phone_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ADDRESS_PHONE_NUM"/>
<bm:field name="bp_bank_account" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_BANK_ACCOUNT"/> <bm:field name="bp_bank_account" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_BANK_ACCOUNT"/>
<bm:field name="product_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_NAME"/> <bm:field name="product_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_NAME"/>
<bm:field name="product_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="product_code"/>
<bm:field name="specification" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPECIFICATION"/> <bm:field name="specification" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPECIFICATION"/>
<bm:field name="uom" databaseType="CHAR" datatype="java.lang.String" physicalName="UOM"/> <bm:field name="uom" databaseType="CHAR" datatype="java.lang.String" physicalName="UOM"/>
<bm:field name="quantity" databaseType="NUMBER" datatype="java.lang.Long" physicalName="QUANTITY"/> <bm:field name="quantity" databaseType="NUMBER" datatype="java.lang.Long" physicalName="QUANTITY"/>
...@@ -28,18 +38,33 @@ ...@@ -28,18 +38,33 @@
<bm:field name="tax_type_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_TYPE_RATE"/> <bm:field name="tax_type_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_TYPE_RATE"/>
<bm:field name="tax_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_AMOUNT"/> <bm:field name="tax_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_AMOUNT"/>
<bm:field name="total_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_AMOUNT"/> <bm:field name="total_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_AMOUNT"/>
<bm:field name="product_item" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_ITEM"/> <bm:field name="discount_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="discount_amount"/>
<bm:field name="discount" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT"/> <bm:field name="dicount_tax_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="dicount_tax_amount"/>
<!-- <bm:field name="product_item" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_ITEM"/>-->
<!-- <bm:field name="discount" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT"/>-->
<bm:field name="discount_rate" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT_RATE"/> <bm:field name="discount_rate" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT_RATE"/>
<bm:field name="discount_tax" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT_TAX"/> <!-- <bm:field name="discount_tax" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT_TAX"/>-->
<bm:field name="line_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LINE_NAME"/> <!-- <bm:field name="line_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LINE_NAME"/>-->
<bm:field name="rec_man" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REC_MAN"/> <bm:field name="rec_man" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REC_MAN"/>
<bm:field name="check_man" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CHECK_MAN"/> <bm:field name="rec_man_tax_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="rec_man_tax_num"/>
<bm:field name="notes" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NOTES"/> <bm:field name="del_man" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="del_man"/>
<bm:field name="blue_number"/> <bm:field name="del_man_tax_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="del_man_tax_num"/>
<bm:field name="blue_code"/> <bm:field name="place_of_sending" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="place_of_sending"/>
<bm:field name="tax_number"/> <bm:field name="car_type_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="car_type_num"/>
<bm:field name="benefit"/> <bm:field name="car_ship_tonnage" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="car_ship_tonnage"/>
<bm:field name="benefit_notes"/> <bm:field name="product_info" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="product_info"/>
<bm:field name="code_version" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="code_version"/>
<bm:field name="tax_type_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="tax_type_code"/>
<bm:field name="preferential_policy_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="preferential_policy_flag"/>
<bm:field name="preferential_policy_content" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="preferential_policy_content"/>
<bm:field name="zero_tax_rate_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="zero_tax_rate_flag"/>
<bm:field name="reduce_amount" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="reduce_amount"/>
<!-- <bm:field name="check_man" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CHECK_MAN"/>-->
<!-- <bm:field name="notes" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NOTES"/>-->
<!-- <bm:field name="blue_number"/>-->
<!-- <bm:field name="blue_code"/>-->
<!-- <bm:field name="tax_number"/>-->
<!-- <bm:field name="benefit"/>-->
<!-- <bm:field name="benefit_notes"/>-->
</bm:fields> </bm:fields>
</bm:model> </bm:model>
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations> <bm:operations>
<bm:operation name="execute"> <bm:operation name="execute">
<!--包没有改变-->
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
BEGIN BEGIN
hls_vat_import_pkg.check_vat_tmp(p_batch_id => ${/session/@session_id}, hls_vat_import_pkg.check_vat_tmp(p_batch_id => ${/session/@session_id},
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<bm:operations> <bm:operations>
<bm:operation name="execute"> <bm:operation name="execute">
<bm:update-sql><![CDATA[begin <bm:update-sql><![CDATA[begin
hls_vat_import_pkg.delete_vat_tmp( hls_vat_import_bak_pkg.delete_vat_tmp(
p_batch_id => ${/session/@session_id}); p_batch_id => ${/session/@session_id});
end;]]></bm:update-sql> end;]]></bm:update-sql>
<bm:parameters> <bm:parameters>
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations> <bm:operations>
<bm:operation name="execute"> <bm:operation name="execute">
<!--没有改变-->
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
BEGIN BEGIN
hls_vat_import_pkg.hls_vat_confirm(p_batch_id => ${/session/@session_id}, hls_vat_import_pkg.hls_vat_confirm(p_batch_id => ${/session/@session_id},
......
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
<bm:field name="vat_date" databaseType="DATE" datatype="java.util.Date" physicalName="VAT_DATE" prompt="HLS_VAT_IMPORT_TMP.VAT_DATE"/> <bm:field name="vat_date" databaseType="DATE" datatype="java.util.Date" physicalName="VAT_DATE" prompt="HLS_VAT_IMPORT_TMP.VAT_DATE"/>
<bm:field name="segment1" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT1" prompt="HLS_VAT_IMPORT_TMP.SEGMENT1"/> <bm:field name="segment1" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT1" prompt="HLS_VAT_IMPORT_TMP.SEGMENT1"/>
<bm:field name="segment2" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT2" prompt="HLS_VAT_IMPORT_TMP.SEGMENT2"/> <bm:field name="segment2" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT2" prompt="HLS_VAT_IMPORT_TMP.SEGMENT2"/>
<bm:field name="segment3" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT3" prompt="HLS_VAT_IMPORT_TMP.SEGMENT3"/> <bm:field name="segment3" datatype="java.lang.String" physicalName="SEGMENT3" prompt="HLS_VAT_IMPORT_TMP.SEGMENT3"/>
<bm:field name="segment4" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT4" prompt="HLS_VAT_IMPORT_TMP.SEGMENT4"/> <bm:field name="segment4" datatype="java.lang.String" physicalName="SEGMENT4" prompt="HLS_VAT_IMPORT_TMP.SEGMENT4"/>
<bm:field name="segment5" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT5" prompt="HLS_VAT_IMPORT_TMP.SEGMENT5"/> <bm:field name="segment5" datatype="java.lang.String" physicalName="SEGMENT5" prompt="HLS_VAT_IMPORT_TMP.SEGMENT5"/>
<bm:field name="segment6" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT6" prompt="HLS_VAT_IMPORT_TMP.SEGMENT6"/> <bm:field name="segment6" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT6" prompt="HLS_VAT_IMPORT_TMP.SEGMENT6"/>
<bm:field name="segment7" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT7" prompt="HLS_VAT_IMPORT_TMP.SEGMENT7"/> <bm:field name="segment7" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT7" prompt="HLS_VAT_IMPORT_TMP.SEGMENT7"/>
<bm:field name="segment8" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT8" prompt="HLS_VAT_IMPORT_TMP.SEGMENT8"/> <bm:field name="segment8" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT8" prompt="HLS_VAT_IMPORT_TMP.SEGMENT8"/>
...@@ -25,10 +25,25 @@ ...@@ -25,10 +25,25 @@
<bm:field name="segment14" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT14" prompt="HLS_VAT_IMPORT_TMP.SEGMENT14"/> <bm:field name="segment14" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT14" prompt="HLS_VAT_IMPORT_TMP.SEGMENT14"/>
<bm:field name="segment15" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT15" prompt="HLS_VAT_IMPORT_TMP.SEGMENT15"/> <bm:field name="segment15" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT15" prompt="HLS_VAT_IMPORT_TMP.SEGMENT15"/>
<bm:field name="segment16" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT16" prompt="HLS_VAT_IMPORT_TMP.SEGMENT16"/> <bm:field name="segment16" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT16" prompt="HLS_VAT_IMPORT_TMP.SEGMENT16"/>
<bm:field name="segment17" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT17" prompt="HLS_VAT_IMPORT_TMP.SEGMENT17"/> <bm:field name="segment17" datatype="java.lang.String" physicalName="SEGMENT17" prompt="HLS_VAT_IMPORT_TMP.SEGMENT17"/>
<bm:field name="segment18" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT18" prompt="HLS_VAT_IMPORT_TMP.SEGMENT18"/> <bm:field name="segment18" physicalName="SEGMENT18" prompt="HLS_VAT_IMPORT_TMP.SEGMENT18"/>
<bm:field name="segment19" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT19" prompt="HLS_VAT_IMPORT_TMP.SEGMENT19"/> <bm:field name="segment19" datatype="java.lang.Double" physicalName="SEGMENT19" prompt="HLS_VAT_IMPORT_TMP.SEGMENT19"/>
<bm:field name="segment20" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SEGMENT20" prompt="HLS_VAT_IMPORT_TMP.SEGMENT20"/> <bm:field name="segment20" datatype="java.lang.Double" physicalName="SEGMENT20" prompt="HLS_VAT_IMPORT_TMP.SEGMENT20"/>
<bm:field name="segment21" datatype="java.lang.Double"/>
<bm:field name="segment22"/>
<bm:field name="segment23"/>
<bm:field name="segment24"/>
<bm:field name="segment25"/>
<bm:field name="segment26"/>
<bm:field name="segment27"/>
<bm:field name="segment28" datatype="java.lang.Double"/>
<bm:field name="segment29"/>
<bm:field name="segment30"/>
<bm:field name="segment31"/>
<bm:field name="segment32"/>
<bm:field name="segment33"/>
<bm:field name="segment34"/>
<bm:field name="segment35" datatype="java.lang.Double"/>
<bm:field name="status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS" prompt="HLS_VAT_IMPORT_TMP.STATUS"/> <bm:field name="status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="STATUS" prompt="HLS_VAT_IMPORT_TMP.STATUS"/>
</bm:fields> </bm:fields>
<bm:features> <bm:features>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations> <bm:operations>
<!-- 将hls_vat_import_pkg改为hls_vat_import_bak_pkg-->
<bm:operation name="execute"> <bm:operation name="execute">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
BEGIN BEGIN
hls_vat_import_pkg.insert_vat_tmp(p_user_id => ${/session/@user_id}, hls_vat_import_bak_pkg.insert_vat_tmp(p_user_id => ${/session/@user_id},
p_header_id => ${/session/@session_id}, p_header_id => ${/session/@session_id},
p_batch_id => ${/session/@session_id}, p_batch_id => ${/session/@session_id},
p_kind =>${/parameter/@kind}); p_kind =>${/parameter/@kind});
......
...@@ -10,274 +10,141 @@ ...@@ -10,274 +10,141 @@
<bm:fields> <bm:fields>
<bm:field name="invoice_hd_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_HD_ID"/> <bm:field name="invoice_hd_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_HD_ID"/>
<bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID"/> <bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="COMPANY_ID"/>
<bm:field name="document_number" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="document_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_NUMBER" prompt="HLS.DOCUMENT_NUMBER"/>
physicalName="DOCUMENT_NUMBER" prompt="HLS.DOCUMENT_NUMBER"/> <bm:field name="document_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_TYPE" prompt="HLS.DOCUMENT_TYPE"/>
<bm:field name="document_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_TYPE" <bm:field name="document_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_TYPE_DESC" prompt="HLS.DOCUMENT_TYPE_DESC"/>
prompt="HLS.DOCUMENT_TYPE"/> <bm:field name="document_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_CATEGORY" prompt="HLS.DOCUMENT_CATEGORY"/>
<bm:field name="document_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="document_category_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOCUMENT_CATEGORY_DESC" prompt="HLS.DOCUMENT_CATEGORY_DESC"/>
physicalName="DOCUMENT_TYPE_DESC" prompt="HLS.DOCUMENT_TYPE_DESC"/> <bm:field name="business_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BUSINESS_TYPE" prompt="HLS.BUSINESS_TYPE"/>
<bm:field name="document_category" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="business_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BUSINESS_TYPE_DESC" prompt="HLS.BUSINESS_TYPE_DESC"/>
physicalName="DOCUMENT_CATEGORY" prompt="HLS.DOCUMENT_CATEGORY"/> <bm:field name="billing_method" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BILLING_METHOD" prompt="ACR.BILLING_METHOD"/>
<bm:field name="document_category_desc" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="billing_method_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BILLING_METHOD_DESC" prompt="ACR.BILLING_METHOD_DESC"/>
physicalName="DOCUMENT_CATEGORY_DESC" prompt="HLS.DOCUMENT_CATEGORY_DESC"/> <bm:field name="lease_organization" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_ORGANIZATION" prompt="HLS.LEASE_ORGANIZATION"/>
<bm:field name="business_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BUSINESS_TYPE" <bm:field name="lease_organization_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_ORGANIZATION_DESC" prompt="HLS.LEASE_ORGANIZATION_DESC"/>
prompt="HLS.BUSINESS_TYPE"/> <bm:field name="lease_channel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_CHANNEL" prompt="HLS.LEASE_CHANNEL"/>
<bm:field name="business_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="lease_channel_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_CHANNEL_DESC" prompt="HLS.LEASE_CHANNEL_DESC"/>
physicalName="BUSINESS_TYPE_DESC" prompt="HLS.BUSINESS_TYPE_DESC"/> <bm:field name="division" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION" prompt="HLS.DIVISION"/>
<bm:field name="billing_method" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="division_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION_DESC" prompt="HLS.DIVISION_DESC"/>
physicalName="BILLING_METHOD" prompt="ACR.BILLING_METHOD"/> <bm:field name="manual_invoice_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MANUAL_INVOICE_FLAG" prompt="ACR.MANUAL_INVOICE_FLAG"/>
<bm:field name="billing_method_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="BILLING_METHOD_DESC" prompt="ACR.BILLING_METHOD_DESC"/>
<bm:field name="lease_organization" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="LEASE_ORGANIZATION" prompt="HLS.LEASE_ORGANIZATION"/>
<bm:field name="lease_organization_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="LEASE_ORGANIZATION_DESC" prompt="HLS.LEASE_ORGANIZATION_DESC"/>
<bm:field name="lease_channel" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_CHANNEL"
prompt="HLS.LEASE_CHANNEL"/>
<bm:field name="lease_channel_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="LEASE_CHANNEL_DESC" prompt="HLS.LEASE_CHANNEL_DESC"/>
<bm:field name="division" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION"
prompt="HLS.DIVISION"/>
<bm:field name="division_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION_DESC"
prompt="HLS.DIVISION_DESC"/>
<bm:field name="manual_invoice_flag" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="MANUAL_INVOICE_FLAG" prompt="ACR.MANUAL_INVOICE_FLAG"/>
<bm:field name="invoice_bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_BP_ID"/> <bm:field name="invoice_bp_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INVOICE_BP_ID"/>
<bm:field name="invoice_bp_code" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="invoice_bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_BP_CODE" prompt="ACR.INVOICE_BP_CODE"/>
physicalName="INVOICE_BP_CODE" prompt="ACR.INVOICE_BP_CODE"/> <bm:field name="invoice_bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_BP_NAME" prompt="ACR.INVOICE_BP_NAME"/>
<bm:field name="invoice_bp_name" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="invoice_title" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_TITLE" prompt="ACR.INVOICE_TITLE"/>
physicalName="INVOICE_BP_NAME" prompt="ACR.INVOICE_BP_NAME"/> <bm:field name="bp_tax_registry_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_TAX_REGISTRY_NUM" prompt="ACR.BP_TAX_REGISTRY_NUM"/>
<bm:field name="invoice_title" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_TITLE" <bm:field name="bp_address_phone_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ADDRESS_PHONE_NUM" prompt="ACR.BP_ADDRESS_PHONE_NUM"/>
prompt="ACR.INVOICE_TITLE"/> <bm:field name="bp_bank_account" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_BANK_ACCOUNT" prompt="ACR.BP_BANK_ACCOUNT"/>
<bm:field name="bp_tax_registry_num" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="HLS.DESCRIPTION"/>
physicalName="BP_TAX_REGISTRY_NUM" prompt="ACR.BP_TAX_REGISTRY_NUM"/> <bm:field name="total_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_AMOUNT" prompt="ACR.TOTAL_AMOUNT"/>
<bm:field name="bp_address_phone_num" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="tax_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_AMOUNT" prompt="ACR.TAX_AMOUNT"/>
physicalName="BP_ADDRESS_PHONE_NUM" prompt="ACR.BP_ADDRESS_PHONE_NUM"/> <bm:field name="net_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="NET_AMOUNT" prompt="不含税金额"/>
<bm:field name="bp_bank_account" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY" prompt="HLS.CURRENCY"/>
physicalName="BP_BANK_ACCOUNT" prompt="ACR.BP_BANK_ACCOUNT"/> <bm:field name="currency_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_DESC" prompt="HLS.CURRENCY_DESC"/>
<bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" <bm:field name="exchange_rate_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXCHANGE_RATE_TYPE" prompt="HLS.EXCHANGE_RATE_TYPE"/>
prompt="HLS.DESCRIPTION"/> <bm:field name="exchange_rate_type_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXCHANGE_RATE_TYPE_DESC" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/>
<bm:field name="total_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TOTAL_AMOUNT" <bm:field name="exchange_rate_quotation" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXCHANGE_RATE_QUOTATION" prompt="ACR.EXCHANGE_RATE_QUOTATION"/>
prompt="ACR.TOTAL_AMOUNT"/> <bm:field name="exchange_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="EXCHANGE_RATE" prompt="HLS.EXCHANGE_RATE"/>
<bm:field name="tax_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="TAX_AMOUNT" <bm:field name="distribution_set_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="DISTRIBUTION_SET_ID"/>
prompt="ACR.TAX_AMOUNT"/> <bm:field name="internal_period_num" databaseType="NUMBER" datatype="java.lang.Long" physicalName="INTERNAL_PERIOD_NUM" prompt="ACR.INTERNAL_PERIOD_NUM"/>
<bm:field name="net_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="NET_AMOUNT" <bm:field name="period_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERIOD_NAME" prompt="HLS.PERIOD_NAME"/>
prompt="不含税金额"/> <bm:field name="accounting_date" databaseType="DATE" datatype="java.util.Date" physicalName="ACCOUNTING_DATE" prompt="ACR.ACCOUNTING_DATE"/>
<bm:field name="currency" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY" <bm:field name="invoice_date" databaseType="DATE" datatype="java.util.Date" physicalName="INVOICE_DATE" prompt="ACR.INVOICE_DATE"/>
prompt="HLS.CURRENCY"/> <bm:field name="invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_NUMBER" prompt="ACR.INVOICE_NUMBER"/>
<bm:field name="currency_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CURRENCY_DESC" <bm:field name="invoice_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_STATUS" prompt="ACR.INVOICE_STATUS"/>
prompt="HLS.CURRENCY_DESC"/> <bm:field name="invoice_status_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_STATUS_DESC" prompt="ACR.INVOICE_STATUS"/>
<bm:field name="exchange_rate_type" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="EXCHANGE_RATE_TYPE" prompt="HLS.EXCHANGE_RATE_TYPE"/>
<bm:field name="exchange_rate_type_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="EXCHANGE_RATE_TYPE_DESC" prompt="HLS.EXCHANGE_RATE_TYPE_DESC"/>
<bm:field name="exchange_rate_quotation" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="EXCHANGE_RATE_QUOTATION" prompt="ACR.EXCHANGE_RATE_QUOTATION"/>
<bm:field name="exchange_rate" databaseType="NUMBER" datatype="java.lang.Double" physicalName="EXCHANGE_RATE"
prompt="HLS.EXCHANGE_RATE"/>
<bm:field name="distribution_set_id" databaseType="NUMBER" datatype="java.lang.Long"
physicalName="DISTRIBUTION_SET_ID"/>
<bm:field name="internal_period_num" databaseType="NUMBER" datatype="java.lang.Long"
physicalName="INTERNAL_PERIOD_NUM" prompt="ACR.INTERNAL_PERIOD_NUM"/>
<bm:field name="period_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PERIOD_NAME"
prompt="HLS.PERIOD_NAME"/>
<bm:field name="accounting_date" databaseType="DATE" datatype="java.util.Date" physicalName="ACCOUNTING_DATE"
prompt="ACR.ACCOUNTING_DATE"/>
<bm:field name="invoice_date" databaseType="DATE" datatype="java.util.Date" physicalName="INVOICE_DATE"
prompt="ACR.INVOICE_DATE"/>
<!--<bm:field name="invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_NUMBER" prompt="ACR.INVOICE_NUMBER"/>-->
<bm:field name="invoice_status" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="INVOICE_STATUS" prompt="ACR.INVOICE_STATUS"/>
<bm:field name="invoice_status_desc" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="INVOICE_STATUS_DESC" prompt="ACR.INVOICE_STATUS"/>
<bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID"/> <bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID"/>
<bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NUMBER" prompt="HLS.PROJECT_NUMBER"/>
physicalName="PROJECT_NUMBER" prompt="HLS.PROJECT_NUMBER"/> <bm:field name="project_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NAME" prompt="HLS.PROJECT_NAME"/>
<bm:field name="project_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NAME"
prompt="HLS.PROJECT_NAME"/>
<bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID"/> <bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID"/>
<bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER" prompt="HLS.CONTRACT_NUMBER"/>
physicalName="CONTRACT_NUMBER" prompt="HLS.CONTRACT_NUMBER"/> <bm:field name="contract_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NAME" prompt="HLS.CONTRACT_NAME"/>
<bm:field name="contract_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NAME" <bm:field name="reversed_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REVERSED_FLAG" prompt="ACR.REVERSED_FLAG"/>
prompt="HLS.CONTRACT_NAME"/> <bm:field name="source_invoice_header_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SOURCE_INVOICE_HEADER_ID"/>
<bm:field name="reversed_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REVERSED_FLAG" <bm:field name="create_je_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CREATE_JE_FLAG" prompt="ACR.CREATE_JE_FLAG"/>
prompt="ACR.REVERSED_FLAG"/> <bm:field name="gld_interface_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GLD_INTERFACE_FLAG" prompt="ACR.GLD_INTERFACE_FLAG"/>
<bm:field name="source_invoice_header_id" databaseType="NUMBER" datatype="java.lang.Long" <bm:field name="confirmed_date" databaseType="DATE" datatype="java.util.Date" physicalName="CONFIRMED_DATE" prompt="ACR.CONFIRMED_DATE"/>
physicalName="SOURCE_INVOICE_HEADER_ID"/>
<bm:field name="create_je_flag" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="CREATE_JE_FLAG" prompt="ACR.CREATE_JE_FLAG"/>
<bm:field name="gld_interface_flag" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="GLD_INTERFACE_FLAG" prompt="ACR.GLD_INTERFACE_FLAG"/>
<bm:field name="confirmed_date" databaseType="DATE" datatype="java.util.Date" physicalName="CONFIRMED_DATE"
prompt="ACR.CONFIRMED_DATE"/>
<bm:field name="confirmed_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONFIRMED_BY"/> <bm:field name="confirmed_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONFIRMED_BY"/>
<bm:field name="confirmed_by_name" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="confirmed_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONFIRMED_BY_NAME" prompt="ACR.CONFIRMED_BY_NAME"/>
physicalName="CONFIRMED_BY_NAME" prompt="ACR.CONFIRMED_BY_NAME"/> <bm:field name="posted_date" databaseType="DATE" datatype="java.util.Date" physicalName="POSTED_DATE" prompt="ACR.POSTED_DATE"/>
<bm:field name="posted_date" databaseType="DATE" datatype="java.util.Date" physicalName="POSTED_DATE"
prompt="ACR.POSTED_DATE"/>
<bm:field name="posted_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="POSTED_BY"/> <bm:field name="posted_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="POSTED_BY"/>
<bm:field name="posted_by_name" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="posted_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="POSTED_BY_NAME" prompt="ACR.POSTED_BY_NAME"/>
physicalName="POSTED_BY_NAME" prompt="ACR.POSTED_BY_NAME"/> <bm:field name="created_by_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CREATED_BY_NAME" prompt="ACR.CREATED_BY_NAME"/>
<bm:field name="created_by_name" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="invoice_kind" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_KIND" prompt="ACR.INVOICE_KIND"/>
physicalName="CREATED_BY_NAME" prompt="ACR.CREATED_BY_NAME"/> <bm:field name="invoice_kind_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_KIND_DESC" prompt="ACR.INVOICE_KIND_DESC"/>
<bm:field name="invoice_kind" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVOICE_KIND" <bm:field name="vat_interface_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INTERFACE_STATUS" prompt="ACR.VAT_INTERFACE_STATUS"/>
prompt="ACR.INVOICE_KIND"/> <bm:field name="vat_interface_status_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INTERFACE_STATUS_DESC" prompt="ACR.VAT_INTERFACE_STATUS_DESC"/>
<bm:field name="invoice_kind_desc" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INVOICE_CODE" prompt="ACR.VAT_INVOICE_CODE"/>
physicalName="INVOICE_KIND_DESC" prompt="ACR.INVOICE_KIND_DESC"/> <bm:field name="vat_invoice_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INVOICE_STATUS"/>
<bm:field name="vat_interface_status" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="vat_red_notice_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_RED_NOTICE_NUM"/>
physicalName="VAT_INTERFACE_STATUS" prompt="ACR.VAT_INTERFACE_STATUS"/> <bm:field name="ref_vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_VAT_INVOICE_CODE"/>
<bm:field name="vat_interface_status_desc" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="ref_invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_INVOICE_NUMBER"/>
physicalName="VAT_INTERFACE_STATUS_DESC" prompt="ACR.VAT_INTERFACE_STATUS_DESC"/> <bm:field name="ref_v01" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V01" prompt="ACR_INVOICE_HD_V.REF_V01"/>
<!-- <bm:field name="vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="VAT_INVOICE_CODE" prompt="ACR.VAT_INVOICE_CODE"/>--> <bm:field name="ref_v02" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V02" prompt="ACR_INVOICE_HD_V.REF_V02"/>
<bm:field name="vat_invoice_status" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="ref_v03" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V03" prompt="ACR_INVOICE_HD_V.REF_V03"/>
physicalName="VAT_INVOICE_STATUS"/> <bm:field name="ref_v04" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V04" prompt="ACR_INVOICE_HD_V.REF_V04"/>
<bm:field name="vat_red_notice_num" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="ref_v05" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V05" prompt="ACR_INVOICE_HD_V.REF_V05"/>
physicalName="VAT_RED_NOTICE_NUM"/> <bm:field name="ref_v06" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V06" prompt="ACR_INVOICE_HD_V.REF_V06"/>
<bm:field name="ref_vat_invoice_code" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="ref_v07" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V07" prompt="ACR_INVOICE_HD_V.REF_V07"/>
physicalName="REF_VAT_INVOICE_CODE"/> <bm:field name="ref_v08" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V08" prompt="ACR_INVOICE_HD_V.REF_V08"/>
<bm:field name="ref_invoice_number" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="ref_v09" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V09" prompt="ACR_INVOICE_HD_V.REF_V09"/>
physicalName="REF_INVOICE_NUMBER"/> <bm:field name="ref_v10" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V10" prompt="ACR_INVOICE_HD_V.REF_V10"/>
<bm:field name="ref_v01" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V01" <bm:field name="ref_n01" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N01" prompt="ACR_INVOICE_HD_V.REF_N01"/>
prompt="ACR_INVOICE_HD_V.REF_V01"/> <bm:field name="ref_n02" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N02" prompt="ACR_INVOICE_HD_V.REF_N02"/>
<bm:field name="ref_v02" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V02" <bm:field name="ref_n03" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N03" prompt="ACR_INVOICE_HD_V.REF_N03"/>
prompt="ACR_INVOICE_HD_V.REF_V02"/> <bm:field name="ref_n04" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N04" prompt="ACR_INVOICE_HD_V.REF_N04"/>
<bm:field name="ref_v03" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V03" <bm:field name="ref_n05" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N05" prompt="ACR_INVOICE_HD_V.REF_N05"/>
prompt="ACR_INVOICE_HD_V.REF_V03"/> <bm:field name="ref_n06" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N06" prompt="ACR_INVOICE_HD_V.REF_N06"/>
<bm:field name="ref_v04" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V04" <bm:field name="ref_n07" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N07" prompt="ACR_INVOICE_HD_V.REF_N07"/>
prompt="ACR_INVOICE_HD_V.REF_V04"/> <bm:field name="ref_n08" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N08" prompt="ACR_INVOICE_HD_V.REF_N08"/>
<bm:field name="ref_v05" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V05" <bm:field name="ref_n09" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N09" prompt="ACR_INVOICE_HD_V.REF_N09"/>
prompt="ACR_INVOICE_HD_V.REF_V05"/> <bm:field name="ref_n10" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N10" prompt="ACR_INVOICE_HD_V.REF_N10"/>
<bm:field name="ref_v06" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V06" <bm:field name="ref_d01" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D01" prompt="ACR_INVOICE_HD_V.REF_D01"/>
prompt="ACR_INVOICE_HD_V.REF_V06"/> <bm:field name="ref_d02" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D02" prompt="ACR_INVOICE_HD_V.REF_D02"/>
<bm:field name="ref_v07" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V07" <bm:field name="ref_d03" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D03" prompt="ACR_INVOICE_HD_V.REF_D03"/>
prompt="ACR_INVOICE_HD_V.REF_V07"/> <bm:field name="ref_d04" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D04" prompt="ACR_INVOICE_HD_V.REF_D04"/>
<bm:field name="ref_v08" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V08" <bm:field name="ref_d05" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D05" prompt="ACR_INVOICE_HD_V.REF_D05"/>
prompt="ACR_INVOICE_HD_V.REF_V08"/>
<bm:field name="ref_v09" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V09"
prompt="ACR_INVOICE_HD_V.REF_V09"/>
<bm:field name="ref_v10" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="REF_V10"
prompt="ACR_INVOICE_HD_V.REF_V10"/>
<bm:field name="ref_n01" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N01"
prompt="ACR_INVOICE_HD_V.REF_N01"/>
<bm:field name="ref_n02" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N02"
prompt="ACR_INVOICE_HD_V.REF_N02"/>
<bm:field name="ref_n03" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N03"
prompt="ACR_INVOICE_HD_V.REF_N03"/>
<bm:field name="ref_n04" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N04"
prompt="ACR_INVOICE_HD_V.REF_N04"/>
<bm:field name="ref_n05" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N05"
prompt="ACR_INVOICE_HD_V.REF_N05"/>
<bm:field name="ref_n06" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N06"
prompt="ACR_INVOICE_HD_V.REF_N06"/>
<bm:field name="ref_n07" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N07"
prompt="ACR_INVOICE_HD_V.REF_N07"/>
<bm:field name="ref_n08" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N08"
prompt="ACR_INVOICE_HD_V.REF_N08"/>
<bm:field name="ref_n09" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N09"
prompt="ACR_INVOICE_HD_V.REF_N09"/>
<bm:field name="ref_n10" databaseType="NUMBER" datatype="java.lang.Long" physicalName="REF_N10"
prompt="ACR_INVOICE_HD_V.REF_N10"/>
<bm:field name="ref_d01" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D01"
prompt="ACR_INVOICE_HD_V.REF_D01"/>
<bm:field name="ref_d02" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D02"
prompt="ACR_INVOICE_HD_V.REF_D02"/>
<bm:field name="ref_d03" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D03"
prompt="ACR_INVOICE_HD_V.REF_D03"/>
<bm:field name="ref_d04" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D04"
prompt="ACR_INVOICE_HD_V.REF_D04"/>
<bm:field name="ref_d05" databaseType="DATE" datatype="java.util.Date" physicalName="REF_D05"
prompt="ACR_INVOICE_HD_V.REF_D05"/>
<bm:field name="owner_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="OWNER_USER_ID"/> <bm:field name="owner_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="OWNER_USER_ID"/>
<bm:field name="owner_user_name" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="owner_user_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="OWNER_USER_NAME" prompt="ACR.OWNER_USER_NAME"/>
physicalName="OWNER_USER_NAME" prompt="ACR.OWNER_USER_NAME"/> <bm:field name="express_date" databaseType="DATE" datatype="java.util.Date" physicalName="EXPRESS_DATE" prompt="ACR.EXPRESS_DATE"/>
<bm:field name="express_date" databaseType="DATE" datatype="java.util.Date" physicalName="EXPRESS_DATE" <bm:field name="express_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_STATUS" prompt="ACR.EXPRESS_STATUS"/>
prompt="ACR.EXPRESS_DATE"/> <bm:field name="express_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_NUM" prompt="ACR.EXPRESS_NUM"/>
<bm:field name="express_status" databaseType="VARCHAR2" datatype="java.lang.String" <bm:field name="express_company" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_COMPANY" prompt="ACR.EXPRESS_COMPANY"/>
physicalName="EXPRESS_STATUS" prompt="ACR.EXPRESS_STATUS"/>
<bm:field name="express_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_NUM"
prompt="ACR.EXPRESS_NUM"/>
<bm:field name="express_company" databaseType="VARCHAR2" datatype="java.lang.String"
physicalName="EXPRESS_COMPANY" prompt="ACR.EXPRESS_COMPANY"/>
<bm:field name="express_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="EXPRESS_BY"/> <bm:field name="express_by" databaseType="NUMBER" datatype="java.lang.Long" physicalName="EXPRESS_BY"/>
<bm:field name="express_note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_NOTE" <bm:field name="express_note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXPRESS_NOTE" prompt="ACR.EXPRESS_NOTE"/>
prompt="ACR.EXPRESS_NOTE"/> <bm:field name="billing_way_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="billing_way_desc" prompt="开票方式"/>
<bm:field name="tax_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="tax_code"/>
<bm:field name="tax_msg" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="tax_msg"/>
<!--<bm:field name="error_code" expression="(select aeih.error_code from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="error_message" expression="(select aeih.error_message from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>-->
<bm:field name="ele_invoice_status"
expression="nvl((select nvl(aeih.status, 'NEW') from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id),'NEW')"/>
<bm:field name="ele_invoice_status_desc"
expression="nvl((select decode(nvl(aeih.status, 'NEW'), 'NEW', '未传入', 'IMPORT', '已传入', 'DOWNLOAD', '已下载', 'FAILURE', '数据有误') from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id),'未传入')"/>
<bm:field name="ele_invoice_hd_id"
expression="(select aeih.ele_invoice_hd_id from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="swno"
expression="(select t.swno from (select aih.invoice_hd_id,aeih.status,aeih.swno from acr_ele_invoice_hd aeih, acr_invoice_hd aih where aeih.invoice_hd_id(+) = aih.invoice_hd_id) t where t.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="yfpdm"
expression="(select t.yfpdm from (select aih.invoice_hd_id,aeih.status,aeih.yfpdm from acr_ele_invoice_hd aeih, acr_invoice_hd aih where aeih.invoice_hd_id(+) = aih.invoice_hd_id) t where t.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="yfphm"
expression="(select t.yfphm from (select aih.invoice_hd_id,aeih.status,aeih.yfphm from acr_ele_invoice_hd aeih, acr_invoice_hd aih where aeih.invoice_hd_id(+) = aih.invoice_hd_id) t where t.invoice_hd_id = t1.invoice_hd_id)"/>
<bm:field name="billing_way" expression="(case when t1.invoice_date &lt; to_date('20190101','yyyymmdd') then '20' else t1.billing_way end)"/>
<bm:field name="billing_way_desc"
expression="(Select v.code_value_name From sys_code_values_v v Where v.code = 'DS_INVOICE_CATEGORY' And v.code_value = (case when t1.invoice_date &lt; to_date('20190101','yyyymmdd') then '20' else t1.billing_way end))"/>
<bm:field name="bp_agent_name"/>
<bm:field name="invoice_number"
expression="(nvl(t1.invoice_number,(Select he.yfphm From acr_ele_invoice_hd he Where he.invoice_hd_id = t1.invoice_hd_id)))"/>
<bm:field name="vat_invoice_code"
expression="(nvl(t1.vat_invoice_code,(Select he.yfpdm From acr_ele_invoice_hd he Where he.invoice_hd_id = t1.invoice_hd_id)) )"/>
</bm:fields> </bm:fields>
<bm:query-fields> <bm:query-fields>
<bm:query-field name="bp_agent_name" queryExpression="t1.bp_agent_name like ${@bp_agent_name}"/>
<bm:query-field name="document_number_f" queryExpression="t1.document_number &gt;= ${@document_number_f}"/> <bm:query-field name="document_number_f" queryExpression="t1.document_number &gt;= ${@document_number_f}"/>
<bm:query-field name="document_number_t" queryExpression="t1.document_number &lt;= ${@document_number_t}"/> <bm:query-field name="document_number_t" queryExpression="t1.document_number &lt;= ${@document_number_t}"/>
<bm:query-field name="contract_number_f" queryExpression="t1.contract_number &gt;= ${@contract_number_f}"/> <bm:query-field name="contract_number_f" queryExpression="t1.contract_number &gt;= ${@contract_number_f}"/>
<bm:query-field name="contract_number_t" queryExpression="t1.contract_number &lt;= ${@contract_number_t}"/> <bm:query-field name="contract_number_t" queryExpression="t1.contract_number &lt;= ${@contract_number_t}"/>
<bm:query-field name="invoice_number_f" queryExpression="t1.invoice_number &gt;= ${@invoice_number_f}"/> <bm:query-field name="invoice_number_f" queryExpression="t1.invoice_number &gt;= ${@invoice_number_f}"/>
<bm:query-field name="invoice_number_t" queryExpression="t1.invoice_number &lt;= ${@invoice_number_t}"/> <bm:query-field name="invoice_number_t" queryExpression="t1.invoice_number &lt;= ${@invoice_number_t}"/>
<bm:query-field name="invoice_date_f" <bm:query-field name="invoice_date_f" queryExpression="t1.invoice_date &gt;= to_date(${@invoice_date_f},&apos;yyyy-mm-dd&apos;)"/>
queryExpression="t1.invoice_date &gt;= to_date(${@invoice_date_f},&apos;yyyy-mm-dd&apos;)"/> <bm:query-field name="invoice_date_t" queryExpression="t1.invoice_date &lt;= to_date(${@invoice_date_t},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="invoice_date_t" <bm:query-field name="accounting_date_f" queryExpression="t1.accounting_date &gt;= to_date(${@accounting_date_f},&apos;yyyy-mm-dd&apos;)"/>
queryExpression="t1.invoice_date &lt;= to_date(${@invoice_date_t},&apos;yyyy-mm-dd&apos;)"/> <bm:query-field name="accounting_date_t" queryExpression="t1.accounting_date &lt;= to_date(${@accounting_date_t},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="accounting_date_f"
queryExpression="t1.accounting_date &gt;= to_date(${@accounting_date_f},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="accounting_date_t"
queryExpression="t1.accounting_date &lt;= to_date(${@accounting_date_t},&apos;yyyy-mm-dd&apos;)"/>
<bm:query-field name="total_amount_f" queryExpression="t1.total_amount &gt;= ${@total_amount_f}"/> <bm:query-field name="total_amount_f" queryExpression="t1.total_amount &gt;= ${@total_amount_f}"/>
<bm:query-field name="total_amount_t" queryExpression="t1.total_amount &lt;= ${@total_amount_t}"/> <bm:query-field name="total_amount_t" queryExpression="t1.total_amount &lt;= ${@total_amount_t}"/>
<bm:query-field name="invoice_bp_code_f" queryExpression="t1.invoice_bp_code &gt;= ${@invoice_bp_code_f}"/> <bm:query-field name="invoice_bp_code_f" queryExpression="t1.invoice_bp_code &gt;= ${@invoice_bp_code_f}"/>
<bm:query-field name="invoice_bp_code_t" queryExpression="t1.invoice_bp_code &lt;= ${@invoice_bp_code_t}"/> <bm:query-field name="invoice_bp_code_t" queryExpression="t1.invoice_bp_code &lt;= ${@invoice_bp_code_t}"/>
<bm:query-field name="currency" queryExpression="t1.currency = ${@currency}"/> <bm:query-field name="currency" queryExpression="t1.currency = ${@currency}"/>
<bm:query-field name="invoice_status" queryExpression="t1.invoice_status = ${@invoice_status}"/> <bm:query-field name="invoice_status" queryExpression="t1.invoice_status = ${@invoice_status}"/>
<bm:query-field name="vat_interface_status" <bm:query-field name="vat_interface_status" queryExpression="t1.vat_interface_status = ${@vat_interface_status}"/>
queryExpression="t1.vat_interface_status = ${@vat_interface_status}"/>
<bm:query-field name="business_type" queryExpression="t1.business_type = ${@business_type}"/> <bm:query-field name="business_type" queryExpression="t1.business_type = ${@business_type}"/>
<bm:query-field name="invoice_kind" queryExpression="t1.invoice_kind = ${@invoice_kind}"/> <bm:query-field name="invoice_kind" queryExpression="t1.invoice_kind = ${@invoice_kind}"/>
<bm:query-field name="invoice_title" queryExpression="t1.invoice_title like ${@invoice_title}"/> <bm:query-field name="invoice_title" queryExpression="t1.invoice_title like ${@invoice_title}"/>
<bm:query-field name="created_by" queryExpression="t1.created_by = ${@created_by}"/> <bm:query-field name="created_by" queryExpression="t1.created_by = ${@created_by}"/>
<bm:query-field name="received_flag" <bm:query-field name="received_flag" queryExpression="(nvl(t1.express_status,&apos;UNDELIVERED&apos;) !=&apos;RECEIVED&apos; or ${@received_flag}=&apos;Y&apos;)"/>
queryExpression="(nvl(t1.express_status,&apos;UNDELIVERED&apos;) !=&apos;RECEIVED&apos; or ${@received_flag}=&apos;Y&apos;)"/>
<bm:query-field name="express_status" queryExpression="t1.express_status = ${@express_status}"/> <bm:query-field name="express_status" queryExpression="t1.express_status = ${@express_status}"/>
<bm:query-field name="confirmed_by" queryExpression="t1.confirmed_by = ${@confirmed_by}"/> <bm:query-field name="confirmed_by" queryExpression="t1.confirmed_by = ${@confirmed_by}"/>
<bm:query-field name="query_contract_number" <bm:query-field name="query_contract_number" queryExpression="exists (select 1 from hls_document_flow_all_v df, con_contract cc where df.contract_id = cc.contract_id and df.ar_invoice_hd_id = t1.invoice_hd_id and cc.contract_number between nvl(${@contract_number_f}, cc.contract_number) and nvl(${@contract_number_t}, cc.contract_number))"/>
queryExpression="exists (select 1 from hls_document_flow_all_v df, con_contract cc where df.contract_id = cc.contract_id and df.ar_invoice_hd_id = t1.invoice_hd_id and cc.contract_number between nvl(${@contract_number_f}, cc.contract_number) and nvl(${@contract_number_t}, cc.contract_number))"/> <bm:query-field name="query_project_number" queryExpression="exists (select 1 from hls_document_flow_all_v df, prj_project pp where df.ar_invoice_hd_id = t1.invoice_hd_id and df.project_id = pp.project_id and pp.project_number between nvl(${@project_number_f}, pp.project_number) and nvl(${@project_number_t}, pp.project_number))"/>
<bm:query-field name="query_project_number"
queryExpression="exists (select 1 from hls_document_flow_all_v df, prj_project pp where df.ar_invoice_hd_id = t1.invoice_hd_id and df.project_id = pp.project_id and pp.project_number between nvl(${@project_number_f}, pp.project_number) and nvl(${@project_number_t}, pp.project_number))"/>
<bm:query-field name="billing_way" queryExpression="(case when t1.invoice_date &lt; to_date('20190101','yyyymmdd') then '20' else t1.billing_way end) = ${@billing_way}"/>
<bm:query-field name="ele_invoice_status" queryExpression="nvl((select nvl(aeih.status, 'NEW') from acr_ele_invoice_hd aeih where aeih.invoice_hd_id = t1.invoice_hd_id),'NEW') = ${@ele_invoice_status}"/>
</bm:query-fields> </bm:query-fields>
<bm:data-filters> <bm:data-filters>
<bm:data-filter enforceOperations="query" <bm:data-filter enforceOperations="query" expression="t1.company_id = ${/session/@company_id} and t1.reversed_flag = &apos;N&apos;"/>
expression="t1.company_id = ${/session/@company_id} and t1.reversed_flag = &apos;N&apos;"/> <bm:data-filter enforceOperations="query" expression="(t1.invoice_status=&apos;CONFIRM&apos; OR t1.invoice_status=&apos;POST&apos;)"/>
<bm:data-filter enforceOperations="query" <bm:data-filter enforceOperations="query" expression="(t1.invoice_kind = &apos;0&apos; or t1.invoice_kind = &apos;2&apos;)"/>
expression="(t1.invoice_status=&apos;CONFIRM&apos; OR t1.invoice_status=&apos;POST&apos;)"/>
<bm:data-filter enforceOperations="query"
expression="(t1.invoice_kind = &apos;0&apos; or t1.invoice_kind = &apos;2&apos;)"/>
</bm:data-filters> </bm:data-filters>
<bm:features> <bm:features>
<f:standard-who/> <f:standard-who/>
......
...@@ -4,49 +4,76 @@ ...@@ -4,49 +4,76 @@
<a:model-query fetchAll="true" model="acr.ACR515.acr_invoice_interface_ln" rootPath="/model/datasource"/> <a:model-query fetchAll="true" model="acr.ACR515.acr_invoice_interface_ln" rootPath="/model/datasource"/>
<dr:excel-report enableTask="false" filename="invoice.xls"> <dr:excel-report enableTask="false" filename="invoice.xls">
<dr:styles> <dr:styles>
<dr:cell-style name="cell1" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_CENTER"> <dr:cell-style name="cell1" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="宋体" height="9"/> <dr:font bold="false" fontName="宋体" height="10"/>
</dr:cell-style> </dr:cell-style>
<dr:cell-style name="cell2" align="ALIGN_RIGHT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_CENTER"> <dr:cell-style name="cell2" align="ALIGN_RIGHT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="Arial" height="9"/> <dr:font bold="false" fontName="Arial" height="10"/>
</dr:cell-style> </dr:cell-style>
<dr:cell-style name="cell3" align="ALIGN_LEFT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_CENTER"> <dr:cell-style name="cell3" align="ALIGN_LEFT" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="宋体" height="9"/> <dr:font bold="false" fontName="宋体" height="10"/>
</dr:cell-style> </dr:cell-style>
<dr:cell-style name="cell4" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_CENTER"> <dr:cell-style name="cell4" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderleft="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" vertical="VERTICAL_BOTTOM">
<dr:font bold="false" fontName="Arial" height="9"/> <dr:font bold="false" fontName="Arial" height="10"/>
</dr:cell-style> </dr:cell-style>
<dr:cell-style name="header" align="ALIGN_LEFT" borderbottom="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" cell_style_id="2" foregroundcolor="BLACK"> <dr:cell-style name="header" align="ALIGN_CENTER" borderbottom="BORDER_THIN" borderright="BORDER_THIN" bordertop="BORDER_THIN" cell_style_id="2" foregroundcolor="BLACK" vertical="VERTICAL_BOTTOM">
<dr:font bold="true" cell_style_id="2" fontname="宋体" height="10"/> <dr:font bold="true" cell_style_id="2" fontname="宋体" height="10"/>
</dr:cell-style> </dr:cell-style>
</dr:styles> </dr:styles>
<dr:sheets> <dr:sheets>
<dr:sheet name="收入确认" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11" displayGridlines="true"> <dr:sheet name="收入确认" autoSizeColumns="0,1,2,3,4,5,6,7,8,9,10,11" displayGridlines="true">
<dr:dynamic-content cell="A" dataModel="/model/datasource" row="1"> <dr:dynamic-content cell="A" dataModel="/model/datasource">
<dr:columns> <dr:columns>
<dr:table-column cellStyle="cell4" field="invoice_kind_n" title="发票类型" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell4" field="invoice_kind_n" title="发票种类" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="document_number" title="单据号" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell1" field="document_number" title="单据号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="invoice_date" title="单据日期" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell2" field="invoice_date" title="单据日期" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell3" field="bp_name" title="发票抬头" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell3" field="bp_code" title="客户编号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="bp_tax_registry_num" title="纳税人税号" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell3" field="bp_name" title="客户名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="bp_tax_registry_num" title="客户税号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="bp_address_phone_num" title="客户地址电话" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell2" field="bp_address_phone_num" title="客户地址电话" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell3" field="bp_bank_account" title="客户开户行账号" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell3" field="bp_bank_account" title="客户银行及账号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="product_name" title="性质" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell1" field="description" title="备注" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="specification" title="规格" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell1" field="vat_red_notice_num" title="专用发票红票通知单号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="ref_vat_invoice_code" title="普通发票红票对应正数发票代码" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="ref_invoice_number" title="普通发票红票对应正数发票号码" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="created_by_name" title="开票人" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="confirmed_by_name" title="复核人" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="received_by_name" title="收款人" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="invoice_title" title="销方银行及帐号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="invoice_bp_address_phone_num" title="销方地址电话" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="product_code" title="商品编号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="product_name" title="商品名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="specification" title="规格型号" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell2" field="uom" title="计量单位" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell2" field="uom" title="计量单位" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell4" field="quantity" title="数量" titlestyle="header" type="Number"/> <dr:table-column cellStyle="cell4" field="quantity" title="数量" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="price" title="单价" titlestyle="header" type="Number"/> <dr:table-column cellStyle="cell1" field="total_amount" title="含税金额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="tax_type_rate" title="税率" titlestyle="header" type="Number"/> <dr:table-column cellStyle="cell1" field="tax_type_rate" title="税率" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="tax_amount" title="税额" titlestyle="header" type="Number"/> <dr:table-column cellStyle="cell1" field="tax_amount" title="税额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="total_amount" title="开票金额" titlestyle="header" type="Number"/> <dr:table-column cellStyle="cell1" field="discount_amount" title="折扣金额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="dicount_tax_amount" title="折扣税额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="price" title="无税单价" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="discount_rate" title="折扣率" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="rec_man" title="收货人" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="rec_man_tax_num" title="收货人纳税人识别号" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="del_man" title="发货人" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="del_man_tax_num" title="发货人纳税人识别号" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="place_of_sending" title="起运地、经由、到达地" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="car_type_num" title="车种车号" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="car_ship_tonnage" title="车船吨位" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="product_info" title="运输货物信息" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="code_version" title="编码版本号" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="tax_type_code" title="税收分类编码" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="preferential_policy_flag" title="是否享受优惠政策" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="preferential_policy_content" title="享受税收优惠政策内容" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="zero_tax_rate_flag" title="零税率标识" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="reduce_amount" title="扣除额" titlestyle="header" type="Number"/>
<!-- <dr:table-column cellStyle="cell1" field="total_amount" title="开票金额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="product_item" title="商品税目" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell1" field="product_item" title="商品税目" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="discount" title="折扣金额" titlestyle="header" type="Number"/> <dr:table-column cellStyle="cell1" field="discount" title="折扣金额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="discount_rate" title="折扣率" titlestyle="header" type="Number"/> <dr:table-column cellStyle="cell1" field="discount_rate" title="折扣率" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="discount_tax" title="折扣税额" titlestyle="header" type="Number"/> <dr:table-column cellStyle="cell1" field="discount_tax" title="折扣税额" titlestyle="header" type="Number"/>
<dr:table-column cellStyle="cell1" field="line_name" title="清单行商品名称" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell1" field="line_name" title="清单行商品名称" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="rec_man" title="收款人" titlestyle="header" type="content"/> <dr:table-column cellStyle="cell1" field="rec_man" title="收款人" titlestyle="header" type="content"/> -->
<dr:table-column cellStyle="cell1" field="check_man" title="复核人" titlestyle="header" type="content"/>
<dr:table-column cellStyle="cell1" field="notes" title="备注" titlestyle="header" type="content"/>
</dr:columns> </dr:columns>
</dr:dynamic-content> </dr:dynamic-content>
</dr:sheet> </dr:sheet>
......
...@@ -5,29 +5,20 @@ ...@@ -5,29 +5,20 @@
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true"> <a:screen xmlns:s="leaf.plugin.script" xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure> <a:init-procedure>
<a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="acr515_currency_list"/> <a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="acr515_currency_list"/>
<a:model-query fetchAll="true" model="acr.ACR512.acr_invoice_business_type_list" <a:model-query fetchAll="true" model="acr.ACR512.acr_invoice_business_type_list" rootPath="acr515_business_type_list"/>
rootPath="acr515_business_type_list"/>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="bmLink_vat_pause_or_submit" model="acr.ACR515.acr_invoice_vat" modelaction="batch_update"/> <a:link id="bmLink_vat_pause_or_submit" model="acr.ACR515.acr_invoice_vat" modelaction="batch_update"/>
<a:link id="bmLink_vat_receive" model="acr.ACR515.acr_invoice_vat" modelaction="execute"/> <a:link id="bmLink_vat_receive" model="acr.ACR515.acr_invoice_vat" modelaction="execute"/>
<a:link id="acr515_update_post_link" <a:link id="acr515_update_post_link" url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_insert_tmp.lsc"/>
url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_insert_tmp.lsc"/> <a:link id="acr515_interface_excel_link" url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_interface_excel_sheets.lsc"/>
<a:link id="acr515_interface_excel_link" <a:link id="acr515_interface_network_link" url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_interface_network_sheets.lsc"/>
url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_interface_excel_sheets.lsc"/> <a:link id="acr515_interface_import_link" url="${/request/@context_path}/modules/acr/ACR515/hls_acr_vat_import_data.lview"/>
<a:link id="acr515_interface_network_link"
url="${/request/@context_path}/modules/acr/ACR515/acr_invoice_interface_network_sheets.lsc"/>
<a:link id="acr515_interface_import_link"
url="${/request/@context_path}/modules/acr/ACR515/hls_acr_vat_import_data.lview"/>
<a:link id="invoice_attachment_uploadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<a:screen-include screen="modules/hls/hls_common_javascript.lview"/> <a:screen-include screen="modules/hls/hls_common_javascript.lview"/>
<script><![CDATA[
<a:link id="ds_hls_paperinv_makeinv_link"
url="${/request/@context_path}/modules/interface/INTERFACE_JINSUI/ds_hls_paperinv_makeinv.lsc"/>
<script type="text/javascript"><![CDATA[
function acr515_invoice_query() { function acr515_invoice_query() {
$('acr515_invoiceVatDs').query(); $('acr515_invoiceVatDs').query();
} }
...@@ -94,7 +85,7 @@ ...@@ -94,7 +85,7 @@
Leaf.request({ Leaf.request({
url: $('bmLink_vat_pause_or_submit').getUrl(), url: $('bmLink_vat_pause_or_submit').getUrl(),
para: datas, para: datas,
success: function (res) { success: function(res) {
f_hls.winNoMask(); f_hls.winNoMask();
Leaf.SideBar.show({ Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}', msg: '${l:HLS.SUBMIT_SUCCESS}',
...@@ -102,10 +93,10 @@ ...@@ -102,10 +93,10 @@
}); });
acr515_invoice_refresh(); acr515_invoice_refresh();
}, },
failure: function () { failure: function() {
f_hls.winNoMask(); f_hls.winNoMask();
}, },
error: function () { error: function() {
f_hls.winNoMask(); f_hls.winNoMask();
}, },
scope: this scope: this
...@@ -116,7 +107,7 @@ ...@@ -116,7 +107,7 @@
Leaf.request({ Leaf.request({
url: $('bmLink_vat_receive').getUrl(), url: $('bmLink_vat_receive').getUrl(),
para: {}, para: {},
success: function (res) { success: function(res) {
f_hls.winNoMask(); f_hls.winNoMask();
Leaf.SideBar.show({ Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}', msg: '${l:HLS.SUBMIT_SUCCESS}',
...@@ -124,10 +115,10 @@ ...@@ -124,10 +115,10 @@
}); });
acr515_invoice_refresh(); acr515_invoice_refresh();
}, },
failure: function () { failure: function() {
f_hls.winNoMask(); f_hls.winNoMask();
}, },
error: function () { error: function() {
f_hls.winNoMask(); f_hls.winNoMask();
}, },
scope: this scope: this
...@@ -135,6 +126,7 @@ ...@@ -135,6 +126,7 @@
} }
function acr515_vat_create() { function acr515_vat_create() {
f_hls.winMask(); f_hls.winMask();
...@@ -145,7 +137,7 @@ ...@@ -145,7 +137,7 @@
return; return;
} }
var datas = []; var datas = [];
for (var i = 0; i < records.length; i++) { for (var i = 0;i < records.length;i++) {
var obj = {}; var obj = {};
obj['invoice_hd_id'] = records[i].get('invoice_hd_id'); obj['invoice_hd_id'] = records[i].get('invoice_hd_id');
obj['_status'] = 'insert'; obj['_status'] = 'insert';
...@@ -165,7 +157,7 @@ ...@@ -165,7 +157,7 @@
return; return;
} }
var datas = []; var datas = [];
for (var i = 0; i < records.length; i++) { for (var i = 0;i < records.length;i++) {
var obj = {}; var obj = {};
obj['invoice_hd_id'] = records[i].get('invoice_hd_id'); obj['invoice_hd_id'] = records[i].get('invoice_hd_id');
obj['type'] = type; obj['type'] = type;
...@@ -190,7 +182,7 @@ ...@@ -190,7 +182,7 @@
return; return;
} }
var datas = []; var datas = [];
for (var i = 0; i < records.length; i++) { for (var i = 0;i < records.length;i++) {
var obj = {}; var obj = {};
obj['invoice_hd_id'] = records[i].get('invoice_hd_id'); obj['invoice_hd_id'] = records[i].get('invoice_hd_id');
...@@ -202,6 +194,8 @@ ...@@ -202,6 +194,8 @@
} }
function acr515_invoice_post() { function acr515_invoice_post() {
var ds = $('acr515_invoiceVatDs'); var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected(); var records = ds.getSelected();
if (records.length == 0) { if (records.length == 0) {
...@@ -210,16 +204,16 @@ ...@@ -210,16 +204,16 @@
} }
var param = {}; var param = {};
var saveData = []; var saveData = [];
var kind = $('acr515_invoiceVatParaDs').getAt(0).get('invoice_kind'); //var kind = $('acr515_invoiceVatParaDs').getAt(0).get('invoice_kind');
var url;
if (kind == '0') { //如果是转票弹出 正常金税发票 // if (kind=='0') { //如果是转票弹出 正常金税发票
url = $('acr515_interface_excel_link').getUrl(); // url = $('acr515_interface_excel_link').getUrl();
} else {//否则弹出电子发票 // } else {//否则弹出电子发票
url = $('acr515_interface_network_link').getUrl(); // url = $('acr515_interface_network_link').getUrl();
} // }
var detail_mask = Ext.getBody(); var detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}'); Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}');
for (var i = 0; i < records.length; i++) { for (var i = 0;i < records.length;i++) {
saveData.push({ saveData.push({
'invoice_hd_id': records[i].get('invoice_hd_id'), 'invoice_hd_id': records[i].get('invoice_hd_id'),
'_status': 'insert' '_status': 'insert'
...@@ -229,463 +223,142 @@ ...@@ -229,463 +223,142 @@
Leaf.request({ Leaf.request({
url: $('acr515_update_post_link').getUrl(), url: $('acr515_update_post_link').getUrl(),
para: param, para: param,
success: function () { success: function() {
Leaf.Masker.unmask(detail_mask); Leaf.Masker.unmask(detail_mask);
window.open(url); var _url=$('acr515_interface_excel_link').getUrl();
window.open(_url);
ds.query(); ds.query();
}, },
failure: function () { failure: function() {
Leaf.Masker.unmask(detail_mask); Leaf.Masker.unmask(detail_mask);
}, },
error: function () { error: function() {
Leaf.Masker.unmask(detail_mask); Leaf.Masker.unmask(detail_mask);
}, },
scope: this scope: this
}); });
} }
function acr515_invoice_import(){
//传入金税接口
function acr515_invoice_post_interface() {
var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected();
if (records.length == 0) {
Leaf.showMessage('提示', '请选择要传入金税接口的数据');
return;
}
var saveData = [];
for (var i = 0; i < records.length; i++) {
if (records[i].get('ele_invoice_status') != 'NEW') {
if(records[i].get('ele_invoice_status') == 'FAILURE'){
//还可继续传入
}else{
Leaf.showMessage('提示', '所选数据中存在已传入或者已下载的单据,请检查!');
return;
}
}
saveData.push({
'invoiceHdId': records[i].get('invoice_hd_id')
});
}
//设置header token
var header = $jq('meta[name=_csrf_header]').attr('content');
var token = $jq('meta[name=_csrf]').attr('content');
$jq(document).ajaxSend(function (e, xhr, options) {
xhr.setRequestHeader(header, token);
});
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
$jq.ajax({
url: '${/request/@context_path}/acr/invoice/info/submit',
method: 'post',
dataType: "json",
contentType: 'application/json;charset=UTF-8',
data: JSON.stringify(saveData),
success: function (args) {
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
if (args.success) {
$('acr515_invoiceVatDs').query();
Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});
} else {
Leaf.showMessage('提示', args.message);
return;
}
},
failure: function (args) {
$('acr515_invoiceVatDs').query();
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'failure',
duration: 2000
});
},
error: function (args) {
$('acr515_invoiceVatDs').query();
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'error',
duration: 2000
});
},
});
}
//下载电子发票
function acr515_invoice_download_interface() {
var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected();
if (records.length == 0) {
Leaf.showMessage('提示', '请选择要下载电子发票的数据');
return;
}
var saveData = [];
for (var i = 0; i < records.length; i++) {
//update by zhuxianfei 20181229
//允许客户多次下载发票,目的是多次推送短信通知和邮件通知
/*if (records[i].get('ele_invoice_status') != 'IMPORT') {
Leaf.showMessage('提示', '所选数据中存在未传入或者已下载的单据,请检查!');
return;
} else if (!Leaf.isEmpty(records[i].get('invoice_number'))) {
Leaf.showMessage('提示', '所选数据中存在已开票的单据,请检查!');
return;
}*/
saveData.push({
'invoiceHdId': records[i].get('invoice_hd_id')
});
}
//设置header token
var header = $jq('meta[name=_csrf_header]').attr('content');
var token = $jq('meta[name=_csrf]').attr('content');
$jq(document).ajaxSend(function (e, xhr, options) {
xhr.setRequestHeader(header, token);
});
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
$jq.ajax({
url: '${/request/@context_path}/acr/invoice/info/download',
method: 'post',
dataType: "json",
contentType: 'application/json;charset=UTF-8',
data: JSON.stringify(saveData),
success: function (args) {
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
if (args.success) {
$('acr515_invoiceVatDs').query();
Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});
} else {
Leaf.showMessage('提示', args.message);
return;
}
},
failure: function (args) {
$('acr515_invoiceVatDs').query();
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'failure',
duration: 2000
});
},
error: function (args) {
$('acr515_invoiceVatDs').query();
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'error',
duration: 2000
});
},
});
}
function acr515_invoice_import() {
var kind = $('acr515_invoiceVatParaDs').getAt(0).get('invoice_kind'); var kind = $('acr515_invoiceVatParaDs').getAt(0).get('invoice_kind');
window.location.href = $('acr515_interface_import_link').getUrl() + '?kind=' + kind; kind=2;
window.location.href = $('acr515_interface_import_link').getUrl()+'?kind='+kind;
} }
function summaryRenderer(datas, name) { function summaryRenderer(datas, name) {
var sum = 0; var sum=0;
var sum1 = 0; var sum1=0;
var sum2 = 0; var sum2=0;
if (name == "invoice_title") { if(name=="invoice_title"){
return '合计:<font color="red"></font>'; return '合计:<font color="red"></font>';
} }
if (name == "total_amount") { if(name=="total_amount"){
for (var i = 0; i < datas.length; i++) { for(var i=0;i<datas.length;i++){
var record = datas[i]; var record=datas[i];
var payment_amount_vl = record.get("total_amount"); var payment_amount_vl=record.get("total_amount");
var payment_amount = parseFloat(payment_amount_vl); var payment_amount=parseFloat(payment_amount_vl);
if (!isNaN(payment_amount)) { if(!isNaN(payment_amount)){
sum += payment_amount; sum+=payment_amount;
}
}
return '<font color="red">' + Leaf.formatNumber(sum, 2) + '</font>';
}
if (name == "tax_amount") {
for (var j = 0; j < datas.length; j++) {
var record1 = datas[j];
var payment_amount_vl1 = record1.get("tax_amount");
var payment_amount1 = parseFloat(payment_amount_vl1);
if (!isNaN(payment_amount1)) {
sum1 += payment_amount1;
}
}
return '<font color="red">' + Leaf.formatNumber(sum1, 2) + '</font>';
}
if (name == "net_amount") {
for (var k = 0; k < datas.length; k++) {
var record2 = datas[k];
var payment_amount_vl2 = record2.get("net_amount");
var payment_amount2 = parseFloat(payment_amount_vl2);
if (!isNaN(payment_amount2)) {
sum2 += payment_amount2;
}
}
return '<font color="red">' + Leaf.formatNumber(sum2, 2) + '</font>';
}
}
//pdf附件
function downloadPdf(val, rec, name) {
if (rec.get('ele_invoice_status') == 'DOWNLOAD') {
return '<a href=javascript:detail_upload_window(' + rec.get('ele_invoice_hd_id') + ')>pdf附件</a>';
}
}
function detail_upload_window(id) {
var url = $('invoice_attachment_uploadFile_id').getUrl() + '?table_name=ACR_ELE_INVOICE_HD&header_id=' + id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'invoice_attachment_uploadFile_id_win',
width: 850,
height: 400
});
win.on('close', function () {
});
}
//纸质发票接口
function acr_paperinv_post_interface() {
debugger;
var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected();
if (records.length == 0) {
Leaf.showMessage('提示', '请选择要传入金税接口的数据');
return;
}
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
for (var i = 0; i < records.length; i++) {
if (records[i].get('ele_invoice_status') != 'NEW') {
Leaf.showMessage('提示', '所选数据中存在已传入或者已下载的单据,请检查!');
return;
} }
else if (!Leaf.isEmpty(records[i].get('invoice_number'))) {
Leaf.showMessage('提示', '所选数据中存在已开票的单据,请检查!');
return;
} }
Leaf.request({ return '<font color="red">' + Leaf.formatNumber(sum ,2)+ '</font>';
url: '${/request/@context_path}/modules/interface/INTERFACE_JINSUI/hls_paperinv_makeinv.lsc',
para: {
invoiceHdId: records[i].get('invoice_hd_id')
},
success: function (res) {
var resCode = res.resCode;
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
/* Leaf.SideBar.show({
msg: '${l:HLS.SUBMIT_SUCCESS}',
duration: 2000
});*/
Leaf.showMessage('提示', '开票成功!');
},
failure: function (args) {
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'failure',
duration: 2000
});
},
error: function (args) {
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.SideBar.show({
msg: 'error',
duration: 2000
});
},
scope: this,
sync: true
});
} }
Leaf.Masker.unmask(Ext.getBody(), '${l:HLS.EXECUTING}'); if(name=="tax_amount"){
$('acr515_invoiceVatDs').query(); for(var j=0;j<datas.length;j++){
var record1=datas[j];
var payment_amount_vl1=record1.get("tax_amount");
var payment_amount1=parseFloat(payment_amount_vl1);
if(!isNaN(payment_amount1)){
sum1+=payment_amount1;
} }
//纸质发票接口
function do_acr_paperinv_post_interface() {
var ds = $('acr515_invoiceVatDs');
var records = ds.getSelected();
if (records.length == 0) {
Leaf.showMessage('提示', '请选择要传入金税接口的数据');
return;
} }
return '<font color="red">' + Leaf.formatNumber(sum1 ,2)+ '</font>';
var datas = [];
for (var i = 0; i < records.length; i++) {
if (records[i].get('ele_invoice_status') != 'NEW') {
Leaf.showMessage('提示', '所选数据中存在已传入或者已下载的单据,请检查!');
return;
} else if (!Leaf.isEmpty(records[i].get('invoice_number'))) {
Leaf.showMessage('提示', '所选数据中存在已开票的单据,请检查!');
return;
} else {
var obj = {};
obj['invoice_hd_id'] = records[i].get('invoice_hd_id');
obj['_status'] = 'update';
datas[i] = obj;
} }
if(name=="net_amount"){
for(var k=0;k<datas.length;k++){
var record2=datas[k];
var payment_amount_vl2=record2.get("net_amount");
var payment_amount2=parseFloat(payment_amount_vl2);
if(!isNaN(payment_amount2)){
sum2+=payment_amount2;
} }
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
//url: '${/request/@context_path}/modules/interface/INTERFACE_JINSUI/ds_hls_paperinv_makeinv.lsc',
url: $('ds_hls_paperinv_makeinv_link').getUrl(),
para: datas,
success: function () {
//$('acr515_invoiceVatDs').query($('acr515_invoiceVatDs').currentPage);
acr515_invoice_query()
Leaf.Masker.unmask(Ext.getBody());
Leaf.showMessage('提示', '开票成功!');
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
} }
return '<font color="red">' + Leaf.formatNumber(sum2 ,2)+ '</font>';
//红字发票接口
function do_acr_redinvoice_interface() {
} }
function details_export() {
$('acr515_invoiceVatDs_grid')._export(null,'金税接口');
} }
]]></script> ]]></script>
<a:dataSets> <a:dataSets>
<a:dataSet id="acr515_invoiceKindDs" lookupCode="ACR510_INVOICE_KIND"/>
<a:dataSet id="acr515_invoiceStatusDs" lookupCode="ACR510_AR_INVOICE_STATUS"/>
<a:dataSet id="acr515_express_status_ds" lookupCode="ACR518_EXPRESS_STATUS"/>
<a:dataSet id="acr515_vat_interface_status_ds" lookupCode="ACR515_VAT_INTERFACE_STATUS"/>
<a:dataSet id="acr515_businessTypeDs"> <a:dataSet id="acr515_businessTypeDs">
<a:datas dataSource="/model/acr515_business_type_list"/> <a:datas dataSource="/model/acr515_business_type_list"/>
</a:dataSet> </a:dataSet>
<a:dataSet id="acr515_currencyDs"> <a:dataSet id="acr515_currencyDs">
<a:datas dataSource="/model/acr515_currency_list"/> <a:datas dataSource="/model/acr515_currency_list"/>
</a:dataSet> </a:dataSet>
<a:dataSet id="acr515_invoiceKindDs" lookupCode="ACR510_INVOICE_KIND"/>
<a:dataSet id="acr515_invoiceWay" lookupCode="DS_INVOICE_CATEGORY"/>
<a:dataSet id="ele_invoice_status_ds" lookupCode="ELE_INVOICE_STATUS"/>
<a:dataSet id="acr515_invoiceStatusDs" lookupCode="ACR510_AR_INVOICE_STATUS"/>
<a:dataSet id="acr515_express_status_ds" lookupCode="ACR518_EXPRESS_STATUS"/>
<a:dataSet id="acr515_vat_interface_status_ds" lookupCode="ACR515_VAT_INTERFACE_STATUS"/>
<a:dataSet id="acr515_invoiceVatParaDs" autoCreate="true" model="acr.acr_invoice_hd_v"> <a:dataSet id="acr515_invoiceVatParaDs" autoCreate="true" model="acr.acr_invoice_hd_v">
<a:fields> <a:fields>
<a:field name="currency_desc" displayField="currency_name" options="acr515_currencyDs" <a:field name="currency_desc" displayField="currency_name" options="acr515_currencyDs" returnField="currency" valueField="currency_code"/>
returnField="currency" valueField="currency_code"/>
<a:field name="invoice_kind"/> <a:field name="invoice_kind"/>
<a:field name="invoice_kind_desc" displayField="code_value_name" <a:field name="invoice_kind_desc" displayField="code_value_name" options="acr515_invoiceKindDs" returnField="invoice_kind" valueField="code_value"/>
options="acr515_invoiceKindDs" returnField="invoice_kind" <a:field name="invoice_status_desc" displayField="code_value_name" options="acr515_invoiceStatusDs" returnField="invoice_status" valueField="code_value"/>
valueField="code_value"/> <a:field name="vat_interface_status" defaultValue="UNTRANSFERED"/>
<a:field name="invoice_status_desc" displayField="code_value_name" options="acr515_invoiceStatusDs" <a:field name="vat_interface_status_desc" defaultValue="未传金税" displayField="code_value_name" options="acr515_vat_interface_status_ds" returnField="vat_interface_status" valueField="code_value"/>
returnField="invoice_status" valueField="code_value"/> <a:field name="business_type_desc" displayField="business_type_desc" options="acr515_businessTypeDs" returnField="business_type" valueField="business_type"/>
<a:field name="vat_interface_status"/> <a:field name="created_by_name" lovGridHeight="320" lovHeight="500" lovService="acr.ACR512.acr_invoice_sys_user_lov" lovWidth="500" title="ACR.CREATED_BY_NAME">
<a:field name="vat_interface_status_desc" displayField="code_value_name"
options="acr515_vat_interface_status_ds" returnField="vat_interface_status"
valueField="code_value"/>
<a:field name="business_type_desc" displayField="business_type_desc" options="acr515_businessTypeDs"
returnField="business_type" valueField="business_type"/>
<a:field name="created_by_name" lovGridHeight="320" lovHeight="500"
lovService="acr.ACR512.acr_invoice_sys_user_lov" lovWidth="500"
title="ACR.CREATED_BY_NAME">
<a:mapping> <a:mapping>
<a:map from="user_id" to="created_by"/> <a:map from="user_id" to="created_by"/>
<a:map from="description" to="created_by_name"/> <a:map from="description" to="created_by_name"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="confirmed_by_name" lovGridHeight="320" lovHeight="500" <a:field name="confirmed_by_name" lovGridHeight="320" lovHeight="500" lovService="acr.ACR512.acr_invoice_sys_user_lov" lovWidth="500" title="ACR.CONFIRMED_BY_NAME">
lovService="acr.ACR512.acr_invoice_sys_user_lov" lovWidth="500"
title="ACR.CONFIRMED_BY_NAME">
<a:mapping> <a:mapping>
<a:map from="user_id" to="confirmed_by"/> <a:map from="user_id" to="confirmed_by"/>
<a:map from="description" to="confirmed_by_name"/> <a:map from="description" to="confirmed_by_name"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="invoice_bp_code_f" lovGridHeight="320" lovHeight="480" <a:field name="invoice_bp_code_f" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500" title="ACR.INVOICE_BP_CODE">
lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500"
title="ACR.INVOICE_BP_CODE">
<a:mapping> <a:mapping>
<a:map from="bp_code" to="invoice_bp_code_f"/> <a:map from="bp_code" to="invoice_bp_code_f"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="invoice_bp_code_t" lovGridHeight="320" lovHeight="480" <a:field name="invoice_bp_code_t" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500" title="ACR.INVOICE_BP_CODE">
lovService="acr.ACR512.acr_invoice_bp_master_list" lovWidth="500"
title="ACR.INVOICE_BP_CODE">
<a:mapping> <a:mapping>
<a:map from="bp_code" to="invoice_bp_code_t"/> <a:map from="bp_code" to="invoice_bp_code_t"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="project_number_f" lovGridHeight="320" lovHeight="480" <a:field name="project_number_f" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500" title="HLS.PROJECT_NUMBER_FROM">
lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500"
title="HLS.PROJECT_NUMBER_FROM">
<a:mapping> <a:mapping>
<a:map from="project_number" to="project_number_f"/> <a:map from="project_number" to="project_number_f"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="project_number_t" lovGridHeight="320" lovHeight="480" <a:field name="project_number_t" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500" title="HLS.PROJECT_NUMBER_FROM">
lovService="acr.ACR512.acr_invoice_project_list" lovWidth="500"
title="HLS.PROJECT_NUMBER_FROM">
<a:mapping> <a:mapping>
<a:map from="project_number" to="project_number_t"/> <a:map from="project_number" to="project_number_t"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="contract_number_f" lovGridHeight="320" lovHeight="480" <a:field name="contract_number_f" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500" title="HLS.CONTRACT_NUMBER_FROM">
lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500"
title="HLS.CONTRACT_NUMBER_FROM">
<a:mapping> <a:mapping>
<a:map from="contract_number" to="contract_number_f"/> <a:map from="contract_number" to="contract_number_f"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="contract_number_t" lovGridHeight="320" lovHeight="480" <a:field name="contract_number_t" lovGridHeight="320" lovHeight="480" lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500" title="HLS.CONTRACT_NUMBER_FROM">
lovService="acr.ACR512.acr_invoice_contract_list" lovWidth="500"
title="HLS.CONTRACT_NUMBER_FROM">
<a:mapping> <a:mapping>
<a:map from="contract_number" to="contract_number_t"/> <a:map from="contract_number" to="contract_number_t"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
<a:field name="received_flag" checkedValue="Y" defaultValue="N" uncheckedValue="N"/> <a:field name="received_flag" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
<a:field name="express_status_name" displayField="code_value_name" <a:field name="express_status_name" displayField="code_value_name" options="acr515_express_status_ds" returnField="express_status" valueField="code_value"/>
options="acr515_express_status_ds" returnField="express_status" valueField="code_value"/>
<a:field name="billing_way"/>
<a:field name="billing_way_desc" displayField="code_value_name"
options="acr515_invoiceWay" returnField="billing_way"
valueField="code_value"/>
<a:field name="ele_invoice_status_desc" displayField="code_value_name"
options="ele_invoice_status_ds" returnField="ele_invoice_status"
valueField="code_value"/>
<a:field name="__async__" defaultValue="Y" prompt="异步导出"/>
</a:fields> </a:fields>
<a:events> <a:events>
<a:event name="update" handler="onUpdate_acr515_invoiceVatParaDs"/> <a:event name="update" handler="onUpdate_acr515_invoiceVatParaDs"/>
</a:events> </a:events>
</a:dataSet> </a:dataSet>
<a:dataSet id="acr515_invoiceVatDs" autoPageSize="true" maxPageSize="10000" model="acr.acr_invoice_hd_v" <a:dataSet id="acr515_invoiceVatDs" autoPageSize="true" maxPageSize="10000" model="acr.acr_invoice_hd_v" queryDataSet="acr515_invoiceVatParaDs" selectable="true">
queryDataSet="acr515_invoiceVatParaDs" selectable="true">
<a:fields><![CDATA[ <a:fields><![CDATA[
]]> ]]></a:fields>
</a:fields>
<a:events> <a:events>
<a:event name="submitsuccess" handler="onSubmitSuccess_acr515_invoiceVatDs"/> <a:event name="submitsuccess" handler="onSubmitSuccess_acr515_invoiceVatDs"/>
</a:events> </a:events>
...@@ -698,93 +371,76 @@ ...@@ -698,93 +371,76 @@
<a:gridButton click="acr515_invoice_reset" text="HLS.RESET"/> <a:gridButton click="acr515_invoice_reset" text="HLS.RESET"/>
<a:gridButton click="acr515_invoice_post" text="开票"/> <a:gridButton click="acr515_invoice_post" text="开票"/>
<a:gridButton click="acr515_invoice_import" text="导入开票结果"/> <a:gridButton click="acr515_invoice_import" text="导入开票结果"/>
<a:gridButton click="acr515_invoice_post_interface" text="传入电子金税接口"/>
<a:gridButton click="acr515_invoice_download_interface" text="下载电子发票"/>
<!-- <a:gridButton click="acr515_vat_pause" text="暂挂"/> <!-- <a:gridButton click="acr515_vat_pause" text="暂挂"/>
<a:gridButton click="acr515_vat_cancel_pause" text="取消暂挂"/> <a:gridButton click="acr515_vat_cancel_pause" text="取消暂挂"/>
<a:gridButton click="acr515_vat_create" text="传入接口"/> <a:gridButton click="acr515_vat_create" text="传入接口"/>
<a:gridButton click="acr515_vat_delete" text="删除接口"/> <a:gridButton click="acr515_vat_delete" text="删除接口"/>
<a:gridButton click="acr515_vat_receive" text="更新开票信息"/> --> <a:gridButton click="acr515_vat_receive" text="更新开票信息"/> -->
<!-- <a:gridButton click="acr_paperinv_post_interface" text="纸质发票开票接口"/>-->
<a:gridButton click="do_acr_paperinv_post_interface" text="纸质发票开票接口"/>
<a:gridButton click="details_export" text="导出"/>
<!-- <a:gridButton click="do_acr_redinvoice_interface" text="纸质发票开票接口"/>-->
</a:screenTopToolbar> </a:screenTopToolbar>
<a:form column="6" marginWidth="30" padding="0"> <a:form column="1" marginWidth="30" padding="0">
<a:textField name="document_number_f" bindTarget="acr515_invoiceVatParaDs" <a:hBox labelSeparator=" " labelWidth="100">
prompt="单据号" width="135"/> <a:textField name="document_number_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.DOCUMENT_NUMBER_FROM" width="150"/>
<a:textField name="document_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/> <div><![CDATA[${l:HLS.DOCUMENT_NUMBER_TO}]]></div>
<a:textField name="document_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:textField name="invoice_number_f" bindTarget="acr515_invoiceVatParaDs" <a:lov name="project_number_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.PROJECT_NUMBER_FROM" width="150"/>
prompt="发票号" width="135"/> <div><![CDATA[${l:HLS.DOCUMENT_NUMBER_TO}]]></div>
<a:textField name="invoice_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/> <a:lov name="project_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:lov name="contract_number_f" bindTarget="acr515_invoiceVatParaDs" <a:comboBox name="business_type_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
prompt="合同号" width="135"/> <a:comboBox name="currency_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:lov name="contract_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/> </a:hBox>
<a:hBox labelSeparator=" " labelWidth="100">
<a:textField name="invoice_number_f" bindTarget="acr515_invoiceVatParaDs" prompt="ACR.INVOICE_NUMBER_FROM" width="150"/>
<a:datePicker name="invoice_date_f" bindTarget="acr515_invoiceVatParaDs" <div><![CDATA[${l:ACR.INVOICE_NUMBER_TO}]]></div>
prompt="发票日期" width="135"/> <a:textField name="invoice_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:datePicker name="invoice_date_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/> <a:lov name="contract_number_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.CONTRACT_NUMBER_FROM" width="150"/>
<div></div>
<a:datePicker name="accounting_date_f" bindTarget="acr515_invoiceVatParaDs" <a:lov name="contract_number_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
prompt="记账日期" width="135"/> <a:comboBox name="invoice_kind_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:datePicker name="accounting_date_t" bindTarget="acr515_invoiceVatParaDs" prompt="TO" width="135"/> <a:lov name="created_by_name" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:numberField name="total_amount_f" allowFormat="true" bindTarget="acr515_invoiceVatParaDs" </a:hBox>
prompt="发票金额" width="135"/> <a:hBox labelSeparator=" " labelWidth="100">
<a:numberField name="total_amount_t" allowFormat="true" bindTarget="acr515_invoiceVatParaDs" <a:datePicker name="invoice_date_f" bindTarget="acr515_invoiceVatParaDs" prompt="ACR.INVOICE_DATE_FROM" width="150"/>
prompt="TO" width="135"/> <div><![CDATA[${l:ACR.INVOICE_DATE_TO}]]></div>
<a:lov name="created_by_name" bindTarget="acr515_invoiceVatParaDs" width="135"/> <a:datePicker name="invoice_date_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:textField name="invoice_title" bindTarget="acr515_invoiceVatParaDs" width="135"/> <a:lov name="invoice_bp_code_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.CUSTOMER_NUMBER_FROM" width="150"/>
<a:comboBox name="invoice_status_desc" bindTarget="acr515_invoiceVatParaDs" width="135"/> <div><![CDATA[${l:HLS.CUSTOMER_NUMBER_TO}]]></div>
<a:lov name="invoice_bp_code_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:comboBox name="billing_way_desc" prompt="开票方式" bindTarget="acr515_invoiceVatParaDs" width="135"/> <a:textField name="invoice_title" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:comboBox name="invoice_kind_desc" bindTarget="acr515_invoiceVatParaDs" width="135"/> <a:lov name="confirmed_by_name" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:comboBox name="vat_interface_status_desc" bindTarget="acr515_invoiceVatParaDs" prompt="金税状态" </a:hBox>
width="135"/> <a:hBox labelSeparator=" " labelWidth="100">
<a:textField name="bp_agent_name" bindTarget="acr515_invoiceVatParaDs" prompt="代理商" width="135"/> <a:datePicker name="accounting_date_f" bindTarget="acr515_invoiceVatParaDs" prompt="HLS.ACCOUNT_DATE_FROM" width="150"/>
<a:comboBox name="ele_invoice_status_desc" prompt="电子发票状态" bindTarget="acr515_invoiceVatParaDs" width="135"/> <div><![CDATA[${l:HLS.ACCOUNT_DATE_TO}]]></div>
<a:datePicker name="accounting_date_t" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:numberField name="total_amount_f" allowFormat="true" bindTarget="acr515_invoiceVatParaDs" prompt="ACR.TOTAL_AMOUNT_FROM" width="150"/>
<div><![CDATA[${l:ACR.TOTAL_AMOUNT_TO}]]></div>
<a:numberField name="total_amount_t" allowFormat="true" bindTarget="acr515_invoiceVatParaDs" prompt="" width="150"/>
<a:comboBox name="invoice_status_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
<a:comboBox name="vat_interface_status_desc" bindTarget="acr515_invoiceVatParaDs" width="150"/>
</a:hBox>
</a:form> </a:form>
<a:grid id="acr515_invoiceVatDs_grid" bindTarget="acr515_invoiceVatDs" marginHeight="300" marginWidth="30" <a:grid id="acr515_invoiceVatDs_grid" bindTarget="acr515_invoiceVatDs" marginWidth="80" navBar="true" height="300">
navBar="true">
<a:columns> <a:columns>
<a:column name="contract_number" width="120"/> <a:column name="contract_number" width="120"/>
<a:column name="document_number" lock="true" width="120"/> <a:column name="document_number" lock="true" width="120"/>
<!-- <a:column name="business_type_desc" width="80"/>--> <a:column name="business_type_desc" width="80"/>
<a:column name="bp_agent_name" prompt="代理商" width="100"/> <a:column name="billing_way_desc" width="80" prompt="开票方式"/>
<a:column name="billing_way_desc" prompt="开票方式" width="100"/>
<a:column name="invoice_kind_desc" width="100"/> <a:column name="invoice_kind_desc" width="100"/>
<a:column name="invoice_number" width="120" prompt="发票号码"/> <a:column name="invoice_number" width="120"/>
<a:column name="vat_invoice_code" width="120" prompt="发票代码"/>
<a:column name="invoice_date" renderer="Leaf.formatDate" width="100"/> <a:column name="invoice_date" renderer="Leaf.formatDate" width="100"/>
<a:column name="invoice_bp_code" width="100"/> <a:column name="invoice_bp_code" width="100"/>
<a:column name="invoice_bp_name" autoAdjust="false" showTitle="true" width="150"/> <a:column name="invoice_bp_name" autoAdjust="false" showTitle="true" width="150"/>
<a:column name="invoice_title" autoAdjust="false" footerRenderer="summaryRenderer" showTitle="true" <a:column name="invoice_title" autoAdjust="false" footerRenderer="summaryRenderer" showTitle="true" width="150"/>
width="150"/> <a:column name="total_amount" align="right" footerRenderer="summaryRenderer" renderer="Leaf.formatMoney" width="100"/>
<a:column name="total_amount" align="right" footerRenderer="summaryRenderer" <a:column name="tax_amount" align="right" footerRenderer="summaryRenderer" renderer="Leaf.formatMoney" width="100"/>
renderer="Leaf.formatMoney" width="100"/> <a:column name="net_amount" align="right" footerRenderer="summaryRenderer" renderer="Leaf.formatMoney" width="100"/>
<a:column name="tax_amount" align="right" footerRenderer="summaryRenderer"
renderer="Leaf.formatMoney" width="100"/>
<a:column name="net_amount" align="right" footerRenderer="summaryRenderer"
renderer="Leaf.formatMoney" width="100"/>
<a:column name="currency" width="80"/> <a:column name="currency" width="80"/>
<a:column name="created_by_name" autoAdjust="false" showTitle="true" width="150"/> <a:column name="created_by_name" autoAdjust="false" showTitle="true" width="150"/>
<a:column name="confirmed_by_name" autoAdjust="false" showTitle="true" width="150"/> <a:column name="confirmed_by_name" autoAdjust="false" showTitle="true" width="150"/>
<a:column name="invoice_status_desc" width="100"/> <a:column name="invoice_status_desc" width="100"/>
<a:column name="vat_interface_status_desc" prompt="金税状态" width="100"/> <a:column name="vat_interface_status_desc" width="100"/>
<a:column name="accounting_date" renderer="Leaf.formatDate" width="100"/> <a:column name="accounting_date" renderer="Leaf.formatDate" width="100"/>
<a:column name="create_je_flag" width="60"/> <!-- <a:column name="create_je_flag" width="60"/> -->
<a:column name="bp_tax_registry_num" prompt="纳税人识别号"/>
<a:column name="ele_invoice_status_desc" prompt="电子发票状态"/>
<a:column name="swno" prompt="电子发票流水号" width="100"/>
<!-- <a:column name="yfpdm" prompt="发票代码" width="100"/>
<a:column name="yfphm" prompt="发票号码" width="100"/>-->
<a:column name="download" prompt="电子发票下载" renderer="downloadPdf" align="center"/>
<a:column name="tax_code" prompt="金税返回code"/>
<a:column name="tax_msg" prompt="金税返回massage" width="200"/>
<a:column name="error_code" prompt="电子发票返回错误code"/>
<a:column name="error_message" prompt="电子发票返回错误message" width="200"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
$Revision: 1.0 $Revision: 1.0
$Purpose: $Purpose:
--> -->
<a:screen xmlns:a="http://www.aurora-framework.org/application" customizationEnabled="true"> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
<a:init-procedure> <a:init-procedure>
<a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="acr515_currency_list"/> <a:model-query fetchAll="true" model="gld.gld_currency_vl" rootPath="acr515_currency_list"/>
<a:model-query fetchAll="true" model="acr.ACR512.acr_invoice_business_type_list" rootPath="acr515_business_type_list"/> <a:model-query fetchAll="true" model="acr.ACR512.acr_invoice_business_type_list" rootPath="acr515_business_type_list"/>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<a:link id="hls_acr_vat_import_shw_err_link" url="${/request/@context_path}/modules/acr/ACR515/hls_acr_vat_import_showerrors.lview"/> <a:link id="hls_acr_vat_import_shw_err_link" url="${/request/@context_path}/modules/acr/ACR515/hls_acr_vat_import_showerrors.lview"/>
<a:link id="acr515_check_import_link" model="acr.ACR515.check_vat_tmp" modelaction="execute"/> <a:link id="acr515_check_import_link" model="acr.ACR515.check_vat_tmp" modelaction="execute"/>
<a:link id="acr515_confirm_import_link" model="acr.ACR515.hls_vat_confirm" modelaction="execute"/> <a:link id="acr515_confirm_import_link" model="acr.ACR515.hls_vat_confirm" modelaction="execute"/>
<script type="text/javascript"><![CDATA[ <script><![CDATA[
//$('submitbtn').disable(); //$('submitbtn').disable();
function importbtn() { function importbtn() {
...@@ -51,9 +51,9 @@ ...@@ -51,9 +51,9 @@
new Leaf.Window({ new Leaf.Window({
id: 'show_error_window', id: 'show_error_window',
url: $('hls_acr_vat_import_shw_err_link').getUrl(), url: $('hls_acr_vat_import_shw_err_link').getUrl(),
title: '错误数据', prompt: '错误数据',
width: 570, width: 900,
height: 300 height: 470
}); });
} }
]]></script> ]]></script>
...@@ -67,16 +67,51 @@ ...@@ -67,16 +67,51 @@
<a:button id="submitbtn_id" click="submitbtn" text="确定"/> <a:button id="submitbtn_id" click="submitbtn" text="确定"/>
<a:button click="showerrorbtn" text="显示错误信息"/> <a:button click="showerrorbtn" text="显示错误信息"/>
</a:hBox> </a:hBox>
<a:grid bindTarget="import_data_ds" height="300" width="600"> <a:grid bindTarget="import_data_ds" height="500" marginWidth="30">
<a:columns> <a:columns>
<a:column name="vat_doc_number" prompt="系统单据号" width="150"/> <a:column name="segment1" prompt="作废标志" width="150"/>
<a:column name="segment2" prompt="发票种类" width="150"/>
<a:column name="vat_doc_number" prompt="单据号" width="150"/>
<a:column name="vat_code" prompt="发票代码" width="150"/> <a:column name="vat_code" prompt="发票代码" width="150"/>
<a:column name="vat_number" prompt="发票号码" width="150"/> <a:column name="vat_number" prompt="发票号码" width="150"/>
<a:column name="vat_date_str" prompt="发票日期" width="100"/> <a:column name="segment3" prompt="客户编号" width="150"/>
<a:column name="segment4" prompt="客户名称" width="150"/>
<a:column name="segment5" prompt="客户税号" width="150"/>
<a:column name="segment6" prompt="客户地址电话" width="150"/>
<a:column name="segment7" prompt="客户银行及帐号" width="150"/>
<a:column name="vat_date_str" prompt="开票日期" width="150"/>
<a:column name="segment8" prompt="备注" width="150"/>
<a:column name="segment9" prompt="开票人" width="150"/>
<a:column name="segment10" prompt="收款人" width="150"/>
<a:column name="segment11" prompt="复核人" width="150"/>
<a:column name="segment12" prompt="销方银行及帐号" width="150"/>
<a:column name="segment13" prompt="销方地址电话" width="150"/>
<a:column name="segment14" prompt="商品编号" width="150"/>
<a:column name="segment15" prompt="商品名称" width="150"/>
<a:column name="segment16" prompt="规格型号" width="150"/>
<a:column name="segment17" prompt="计量单位" width="150"/>
<a:column name="segment18" prompt="数量" width="150"/>
<a:column name="segment19" prompt="金额(含税)" width="150"/>
<a:column name="segment20" prompt="税率" width="150"/>
<a:column name="segment21" prompt="税额" width="150"/>
<a:column name="segment22" prompt="收货人" width="150"/>
<a:column name="segment23" prompt="收货人纳税人识别号" width="150"/>
<a:column name="segment24" prompt="发货人" width="150"/>
<a:column name="segment25" prompt="发货人纳税人识别号" width="150"/>
<a:column name="segment26" prompt="起运地、经由、到达地" width="150"/>
<a:column name="segment27" prompt="车种车号" width="150"/>
<a:column name="segment28" prompt="车船吨位" width="150"/>
<a:column name="segment29" prompt="运输货物信息" width="150"/>
<a:column name="segment30" prompt="编码版本号" width="150"/>
<a:column name="segment31" prompt="税收分类编码" width="150"/>
<a:column name="segment32" prompt="是否享受优惠政策" width="150"/>
<a:column name="segment33" prompt="享受税收优惠政策内容" width="150"/>
<a:column name="segment34" prompt="零税率标识" width="150"/>
<a:column name="segment35" prompt="扣除额" width="150"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
<script type="text/javascript"><![CDATA[ <script><![CDATA[
$('submitbtn_id').disable(); $('submitbtn_id').disable();
]]></script> ]]></script>
</a:view> </a:view>
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
<a:dataSet id="hls_vat_import_error_ds" autoQuery="true" model="acr.ACR515.hls_vat_import_logs"/> <a:dataSet id="hls_vat_import_error_ds" autoQuery="true" model="acr.ACR515.hls_vat_import_logs"/>
</a:dataSets> </a:dataSets>
<a:screenBody> <a:screenBody>
<a:grid bindTarget="hls_vat_import_error_ds" height="270" width="554"> <a:grid bindTarget="hls_vat_import_error_ds" height="370" width="880">
<a:columns> <a:columns>
<a:column name="batch_line_id" prompt="序号" width="100"/> <a:column name="batch_line_id" prompt="序号" width="100"/>
<a:column name="vat_doc_number" prompt="单据号" width="150"/> <a:column name="vat_doc_number" prompt="单据号" width="150"/>
<a:column name="message" prompt="错误信息" width="300"/> <a:column name="message" prompt="错误信息" width="630"/>
</a:columns> </a:columns>
</a:grid> </a:grid>
</a:screenBody> </a:screenBody>
......
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
if (document.getElementById('importFile').value) { if (document.getElementById('importFile').value) {
var fileName = document.getElementById('importFile').value; var fileName = document.getElementById('importFile').value;
var fileType = fileName.substr(fileName.lastIndexOf(".")); var fileType = fileName.substr(fileName.lastIndexOf("."));
/*if (fileType != '.xls') { if (fileType != '.xls') {
alert('请选择正确的导入文件!'); alert('请选择正确的导入文件!');
} else {*/ } else {
document.getElementById('importForm').submit(); document.getElementById('importForm').submit();
/*}*/ }
} }
} }
]]></script> ]]></script>
...@@ -34,7 +34,9 @@ ...@@ -34,7 +34,9 @@
<a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/> <a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/>
</a:fieldSet> </a:fieldSet>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="导入文件" width="400"> <a:fieldSet style="margin-left:10px;margin-top:10px;" title="导入文件" width="400">
<form name="upload" id="importForm" action="hls_acr_vat_import_trans_upload.lview?kind=${/parameter/@kind}" enctype="multipart/form-data" method="post"> <!-- modules/prj/PRJ501N/prj_lease_item_trans_upload.lview?session_id=${/parameter/@session_id}&amp;kind=${/parameter/@kind}&amp;parent_ds_id=${/parameter/@parent_ds_id}&amp;type=${/parameter/@type}&amp;_csrf=${/session/@_csrf.token}-->
<form name="upload" id="importForm" action="hls_acr_vat_import_trans_upload.lview?session_id=${/parameter/@session_id}&amp;kind=${/parameter/@kind}&amp;parent_ds_id=${/parameter/@parent_ds_id}&amp;type=${/parameter/@type}&amp;_csrf=${/session/@_csrf.token}" enctype="multipart/form-data" method="post">
<label style="margin-left:10px;margin-top:10px;"><![CDATA[请选择文件:]]></label> <label style="margin-left:10px;margin-top:10px;"><![CDATA[请选择文件:]]></label>
<input name="CONTENT" id="importFile" style="margin-bottom:4px;width:160px;height:22px;" type="file"/> <input name="CONTENT" id="importFile" style="margin-bottom:4px;width:160px;height:22px;" type="file"/>
<input onclick="saveClick()" style="margin-left:10px;margin-top:10px;width:60px;" type="button" value="导入"/> <input onclick="saveClick()" style="margin-left:10px;margin-top:10px;width:60px;" type="button" value="导入"/>
......
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