Commit fe32786b authored by stone's avatar stone

【fix】修改销项发票创建功能

parent aa2297fa
...@@ -37,9 +37,14 @@ ...@@ -37,9 +37,14 @@
v.invoice_title) invoice_title, v.invoice_title) invoice_title,
v.invoice_bp_address_phone_num, v.invoice_bp_address_phone_num,
v.invoice_bp_bank_account, v.invoice_bp_bank_account,
v.taxpayer_type, DECODE(v.bp_class,'NP','SMALL_SCALE_TAXPAYER',v.taxpayer_type) As taxpayer_type,
v.taxpayer_type_desc, -- m.taxpayer_type As taxpayer_type,
v.tax_registry_num (SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'HLS211_TAXPAYER_TYPE'
AND v.code_value = DECODE(v.bp_class,'NP','SMALL_SCALE_TAXPAYER',v.taxpayer_type)
) AS taxpayer_type_desc,
v.tax_registry_num
from acr_invoice_billing_object_v v from acr_invoice_billing_object_v v
#WHERE_CLAUSE# #WHERE_CLAUSE#
]]></bm:query-sql> ]]></bm:query-sql>
......
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
decode(t2.cf_item,'250',t1.inv_billing_object_id,t1.billing_object_id) billing_object_id, decode(t2.cf_item,'250',t1.inv_billing_object_id,t1.billing_object_id) billing_object_id,
decode(t2.cf_item,'250',t1.inv_billing_object_code,t1.billing_object_code) billing_object_code, decode(t2.cf_item,'250',t1.inv_billing_object_code,t1.billing_object_code) billing_object_code,
decode(t2.cf_item,'250',t1.inv_billing_object_name,t1.billing_object_name) billing_object_name, decode(t2.cf_item,'250',t1.inv_billing_object_name,t1.billing_object_name) billing_object_name,
--modify by shen 纳税人类型取承租人,如果是自然人就默认为小规模
--
decode(t2.cf_item,'250',t1.inv_object_taxpayer_type,t1.object_taxpayer_type) object_taxpayer_type, decode(t2.cf_item,'250',t1.inv_object_taxpayer_type,t1.object_taxpayer_type) object_taxpayer_type,
decode(t2.cf_item,'250',t1.inv_object_taxpayer_type_desc,t1.object_taxpayer_type_desc) object_taxpayer_type_desc, decode(t2.cf_item,'250',t1.inv_object_taxpayer_type_desc,t1.object_taxpayer_type_desc) object_taxpayer_type_desc,
-- t1.object_taxpayer_type_desc, -- t1.object_taxpayer_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