update 更新所有确认收入状态接口处理不需要开票的项目时更新确认来款表和到账表的税额为0

This commit is contained in:
lijiarao
2022-08-03 15:08:07 +08:00
parent 70c03048b7
commit 0cc2f47df1
6 changed files with 134 additions and 29 deletions
+36 -6
View File
@@ -318,7 +318,7 @@ set confirm_no_tax_amount = confirm_amount / 1.06,
confirm_tax = confirm_amount - confirm_no_tax_amount,
paid_tax = paid_amount - paid_no_tax_amount,
invoice_tax = invoice_amount - invoice_no_tax_amount
where 1 = 1;
where need_invoice != 0;
update pay_working_group_subitem
set confirm_no_tax_amount = confirm_amount / 1.06,
paid_no_tax_amount = paid_amount / 1.06,
@@ -326,7 +326,7 @@ set confirm_no_tax_amount = confirm_amount / 1.06,
confirm_tax = confirm_amount - confirm_no_tax_amount,
paid_tax = paid_amount - paid_no_tax_amount,
invoice_tax = invoice_amount - invoice_no_tax_amount
where 1 = 1;
where need_invoice != 0;
update pay_member_project_subitem
set confirm_no_tax_amount = confirm_amount / 1.06,
paid_no_tax_amount = paid_amount / 1.06,
@@ -334,7 +334,7 @@ set confirm_no_tax_amount = confirm_amount / 1.06,
confirm_tax = confirm_amount - confirm_no_tax_amount,
paid_tax = paid_amount - paid_no_tax_amount,
invoice_tax = invoice_amount - invoice_no_tax_amount
where 1 = 1;
where need_invoice != 0;
update pay_meeting_situation
set confirm_no_tax_amount = confirm_amount / 1.06,
paid_no_tax_amount = paid_amount / 1.06,
@@ -342,7 +342,7 @@ set confirm_no_tax_amount = confirm_amount / 1.06,
confirm_tax = confirm_amount - confirm_no_tax_amount,
paid_tax = paid_amount - paid_no_tax_amount,
invoice_tax = invoice_amount - invoice_no_tax_amount
where 1 = 1;
where need_invoice != 0;
update tb_member_project_subitem
set confirm_no_tax_amount = confirm_amount / 1.06,
paid_no_tax_amount = paid_amount / 1.06,
@@ -350,7 +350,7 @@ set confirm_no_tax_amount = confirm_amount / 1.06,
confirm_tax = confirm_amount - confirm_no_tax_amount,
paid_tax = paid_amount - paid_no_tax_amount,
invoice_tax = invoice_amount - invoice_no_tax_amount
where 1 = 1;
where invoice_requirements != 0;
update tb_certificate_payment
set confirm_no_tax_amount = confirm_amount / 1.06,
paid_no_tax_amount = paid_amount / 1.06,
@@ -358,7 +358,37 @@ set confirm_no_tax_amount = confirm_amount / 1.06,
confirm_tax = confirm_amount - confirm_no_tax_amount,
paid_tax = paid_amount - paid_no_tax_amount,
invoice_tax = invoice_amount - invoice_no_tax_amount
where 1 = 1;
where invoice_requirements != 0;
update pay_common_project
set confirm_no_tax_amount = confirm_amount ,
paid_no_tax_amount = paid_amount ,
invoice_no_tax_amount = invoice_amount
where need_invoice = 0;
update pay_working_group_subitem
set confirm_no_tax_amount = confirm_amount,
paid_no_tax_amount = paid_amount,
invoice_no_tax_amount = invoice_amount
where need_invoice = 0;
update pay_member_project_subitem
set confirm_no_tax_amount = confirm_amount ,
paid_no_tax_amount = paid_amount ,
invoice_no_tax_amount = invoice_amount
where need_invoice = 0;
update pay_meeting_situation
set confirm_no_tax_amount = confirm_amount ,
paid_no_tax_amount = paid_amount ,
invoice_no_tax_amount = invoice_amount
where need_invoice = 0;
update tb_member_project_subitem
set confirm_no_tax_amount = confirm_amount ,
paid_no_tax_amount = paid_amount ,
invoice_no_tax_amount = invoice_amount
where invoice_requirements = 0;
update tb_certificate_payment
set confirm_no_tax_amount = confirm_amount ,
paid_no_tax_amount = paid_amount ,
invoice_no_tax_amount = invoice_amount
where invoice_requirements = 0;
select *
from v_statistical;