add 处理打包管理历史数据sql

This commit is contained in:
lijiarao
2024-07-18 16:01:47 +08:00
parent f389d18a3f
commit e76eff938b
+6
View File
@@ -328,6 +328,12 @@ update pay_confirm_payment_record
set no_tax_amount = amount_received / 1.06,
tax = amount_received - no_tax_amount
where amount_received is not null;
-- 2024-7-18 16:01:31 处理打包管理历史数据
update pay_pack_company
set receivable_amount = pack_charge_total,
no_tax_amount = receivable_amount / 1.06,
tax = receivable_amount - no_tax_amount
where pack_year != 2024;
-- 六个项目处理历史数据
update pay_common_project
set confirm_no_tax_amount = confirm_amount / 1.06,