完善订单审批、每日对账与信用卡手续费
加入助理订单变更复核、收款人汇总、每日报销和应转金额;优化库存筛选、订单明细与连续浏览。开单身份必填,信用卡手续费按实收4‰自动计算并默认由麦麦承担,打印优惠显示在人民币大写旁。 验证:484项测试通过;独立HTTP与浏览器覆盖普通订单、锁价、修改审批、断线恢复和打印隔离。旧报表兼容,本机升级原29表295行数据保持一致。
This commit is contained in:
1 parent
27a11e9b35
commit
a506fb1228
68 files changed
+3591
-259
No files matched your search
@@ -3,7 +3,7 @@ const {historicalAction}=require('./fixtures/legacy-cancellation.cjs');
|
||||
const {test}=require('node:test'),assert=require('node:assert/strict'),{randomUUID}=require('node:crypto');
|
||||
const {Ledger}=require('../ledger'),Calc=require('../public/calculations'),{receipt}=require('../printing');
|
||||
const date='2026-10-17',actor={id:'cost-owner',name:'测试麦麦',role:'owner'};
|
||||
function input(){return {date,payment_account:'助理微信',lines:[
|
||||
function input(){return {date,customer:'合成客户',salesperson:'合成开单人',payment_account:'助理微信',lines:[
|
||||
{name:'足金999',unit:'g',quantity:'2.2',pocket:'',payer:'owner',sale:'2300',costParts:{material:'1980',labor:'0',accessories:'5',other:'0'},costLabor:{mode:'gram',rate:'20'},charges:[{name:'证书',amount:'10'}]},
|
||||
{name:'纯银925',unit:'件',quantity:'1',pocket:'',payer:'assistant',sale:'200',costParts:{material:'80',labor:'10',accessories:'0',other:'0'}}
|
||||
],fee_items:[{key:'shipping',note:'快递费',amount:'6',payer:'assistant',status:'estimated'},{key:'certificate',note:'证书',amount:'4',payer:'owner',status:'estimated'},{key:'box',note:'包装',amount:'3',payer:'owner',status:'estimated'}]};}
|
||||
|
||||
Reference in new issue
Block a user