调整业务问题

This commit is contained in:
2026-09-02 03:22:22 +08:00
parent 3edfb72d7d
commit e5b8ff5d4c
21 changed files with 249 additions and 63 deletions
@@ -104,10 +104,12 @@ CREATE TABLE IF NOT EXISTS `blade_invoice_application_line` (
`goods_name` varchar(100) NOT NULL,
`unit` varchar(30) DEFAULT NULL,
`quantity` decimal(18,4) DEFAULT NULL,
`unit_price_no_tax` decimal(18,4) DEFAULT NULL,
`amount_with_tax` decimal(18,2) NOT NULL DEFAULT '0.00',
`unit_price_no_tax` decimal(18,2) DEFAULT NULL,
`amount_no_tax` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '不含税金额',
`amount_with_tax` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '含税金额(兼容历史字段)',
`tax_rate` decimal(8,4) NOT NULL DEFAULT '0.0000',
`tax_amount` decimal(18,2) NOT NULL DEFAULT '0.00',
`total_amount` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '含税合计',
`remark` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_invoice_sheet_line` (`invoice_sheet_id`,`line_no`),