补齐源快照、资料预演、正式导入及工资核算的依赖链路。 新增版本化输入、逐段 FIFO、生成锁和结构化当月调整, 并提供默认关闭的周期采集、有限重试及 Windows 托管。 原始客户资料、私有配置及首页改动不纳入本次提交。 BREAKING CHANGE: 升级前需应用新增迁移,并通过 PAYROLL_MAKER_USER_ID 绑定实际工资制作人,否则业务只读。 旧单批次核算默认关闭;历史兼容需显式启用 PAYROLL_ALLOW_LEGACY_CALCULATION。生产启用和真实金额待验收。
9 lines
516 B
SQL
9 lines
516 B
SQL
SELECT TOP (201) b.id,b.idSaleDeliveryDTO,b.idinventory,i.code AS product_code,
|
|
i.name AS product_name,i.specification,cl.name AS source_class,
|
|
b.quantity,b.taxPrice,b.taxAmount,b.expenseAmount,b.costPrice,b.costAmount
|
|
FROM dbo.SA_SaleDelivery_b b JOIN dbo.SA_SaleDelivery h ON h.id=b.idSaleDeliveryDTO
|
|
LEFT JOIN dbo.AA_Inventory i ON i.id=b.idinventory
|
|
LEFT JOIN dbo.AA_InventoryClass cl ON cl.id=i.idinventoryclass
|
|
WHERE h.idcustomer=:customer_id AND h.voucherdate<:until
|
|
ORDER BY h.voucherdate,h.id,b.id;
|