Commit fd58a085 authored by stone's avatar stone

【fix】修改销项发票字段

parent 3409e696
...@@ -41,53 +41,51 @@ ...@@ -41,53 +41,51 @@
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select t.cashflow_id, SELECT t.cashflow_id,
t.record_id, t.record_id,
t.billing_object, t.billing_object,
(select c.code_value_name (SELECT c.code_value_name
from sys_code_values_v c FROM sys_code_values_v c
where c.code = 'ACR510_BILL_DETAIL_METHOD' WHERE c.code = 'ACR510_BILL_DETAIL_METHOD'
and c.code_value = t.billing_object) as billing_object_desc, AND c.code_value = t.billing_object) AS billing_object_desc,
(select m.bp_name (SELECT m.bp_name FROM hls_bp_master_s_v m WHERE m.bp_id = t.bp_id) billing_object_name,
from hls_bp_master_s_v m t.due_amount,
where m.bp_id =t.bp_id) billing_object_name, --本次开票金额
t.due_amount, t.due_amount received_amount,
--本次开票金额 t.due_amount billing_amount,
t.due_amount received_amount, 0 cf_billing_amount,
t.due_amount billing_amount, t.contract_id,
0 cf_billing_amount, con.contract_number,
t.contract_id, con.contract_name,
con.contract_number, con.project_id,
con.contract_name, con.project_number,
con.project_id, con.project_name,
con.project_number, t.invoice_kind,
con.project_name, (SELECT v.code_value_name
t.invoice_kind, FROM sys_code_values_v v
(select v.code_value_name WHERE v.code = 'ACR510_INVOICE_KIND'
from sys_code_values_v v AND v.code_value = t.invoice_kind) AS invoice_kind_desc,
where v.code = 'ACR510_INVOICE_KIND' t.currency,
and v.code_value = t.invoice_kind) as invoice_kind_desc, (SELECT c.currency_name
t.currency, FROM gld_currency_vl c
(select c.currency_name WHERE c.currency_code = t.currency) AS currency_desc,
from gld_currency_vl c 1 AS exchange_rate,
where c.currency_code = t.currency) as currency_desc, 'MANUAL' AS exchange_rate_type,
1 as exchange_rate, (SELECT v.rate_type_desc
'MANUAL' as exchange_rate_type, FROM gld_exchange_rate_type_v v
(select v.rate_type_desc WHERE v.rate_type_code = 'MANUAL') AS exchange_rate_type_desc,
from gld_exchange_rate_type_v v (SELECT cf.transaction_date
where v.rate_type_code = 'MANUAL') as exchange_rate_type_desc, FROM hls_journal_detail cf
to_char(cf.transaction_date,'yyyy-mm-dd')transaction_date, WHERE cf.journal_line_id = t.journal_line_id) transaction_date,
t.cf_item,
t.tax_amount, t.cf_item,
'违约金' cf_item_desc, t.tax_amount,
'融资租赁费' as product_name '违约金' cf_item_desc,
from acr_invoice_create_tmp t, '融资租赁费' AS product_name
con_contract_v con, FROM acr_invoice_create_tmp t, con_contract_v con
ACR_INVOICE_PENALTY_V cf WHERE t.session_id = ${/session/@session_id}
where t.session_id = ${/session/@session_id} AND t.contract_id = con.contract_id
and t.contract_id = con.contract_id ORDER BY con.contract_id, t.cf_item
and t.contract_id = cf.contract_id
order by con.contract_id,t.cf_item
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
......
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
<a:column name="cf_item_desc"/> <a:column name="cf_item_desc"/>
<a:column name="contract_name" width="200"/> <a:column name="contract_name" width="200"/>
<a:column name="project_number" width="150" prompt="报单编号"/> <a:column name="project_number" width="150" prompt="报单编号"/>
<a:column name="project_name" width="200" prompt="报单名称"/> <!-- <a:column name="project_name" width="200" prompt="报单名称"/>-->
<a:column name="last_received_date" renderer="Leaf.formatDate" width="80"/> <a:column name="last_received_date" renderer="Leaf.formatDate" width="80"/>
<!-- <a:column name="exchange_rate" align="right"/> <!-- <a:column name="exchange_rate" align="right"/>
<a:column name="exchange_rate_type_desc"/>--> <a:column name="exchange_rate_type_desc"/>-->
......
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
<a:column name="cf_item_desc"/> <a:column name="cf_item_desc"/>
<a:column name="contract_name" width="200"/> <a:column name="contract_name" width="200"/>
<a:column name="project_number" width="150" prompt="报单编号"/> <a:column name="project_number" width="150" prompt="报单编号"/>
<a:column name="project_name" width="200" prompt="报单名称"/> <!-- <a:column name="project_name" width="200" prompt="报单名称"/>-->
<a:column name="transaction_date" renderer="Leaf.formatDate" width="80" prompt="收款日期"/> <a:column name="transaction_date" renderer="Leaf.formatDate" width="80" prompt="收款日期"/>
<!-- <a:column name="exchange_rate" align="right"/> <!-- <a:column name="exchange_rate" align="right"/>
<a:column name="exchange_rate_type_desc"/>--> <a:column name="exchange_rate_type_desc"/>-->
......
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