diff --git a/db/统计视图.sql b/db/统计视图.sql index 4c0dcd3b..0e5fd7c5 100644 --- a/db/统计视图.sql +++ b/db/统计视图.sql @@ -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,