完善订单审批、每日对账与信用卡手续费

加入助理订单变更复核、收款人汇总、每日报销和应转金额;优化库存筛选、订单明细与连续浏览。开单身份必填,信用卡手续费按实收4‰自动计算并默认由麦麦承担,打印优惠显示在人民币大写旁。

验证:484项测试通过;独立HTTP与浏览器覆盖普通订单、锁价、修改审批、断线恢复和打印隔离。旧报表兼容,本机升级原29表295行数据保持一致。
This commit is contained in:
summer committed 2026-10-23 09:49:36 +08:00
1 parent 27a11e9b35
commit a506fb1228
68 files changed
+3591 -259

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ const {Ledger}=require('../ledger'),Calc=require('../public/calculations'),{crea
const owner={id:'component-owner',name:'测试麦麦',role:'owner'},D='2026-09-30',D2='2026-10-01';
const line=(extra={})=>({name:'合成商品',unit:'g',quantity:'2.200',pocket:'现货',payer:'owner',sale:'2300',
costParts:{material:'9999',labor:'999',accessories:'5',other:'1'},costMaterial:{mode:'gram',rate:'900'},costLabor:{mode:'gram',rate:'20'},...extra});
const payload=(extra={})=>({date:D,customer:'合成客户',payment_account:'助理微信',lines:[line()],
const payload=(extra={})=>({date:D,customer:'合成客户',salesperson:'合成开单人',payment_account:'助理微信',lines:[line()],
fee_items:[{key:'shipping',note:'快递费',amount:'6',payer:'assistant'},{key:'box',note:'包装',amount:'3',payer:'owner'}],...extra});
function fixture(t){
const ledger=new Ledger(':memory:');t.after(()=>ledger.close());