完善订单审批、每日对账与信用卡手续费
加入助理订单变更复核、收款人汇总、每日报销和应转金额;优化库存筛选、订单明细与连续浏览。开单身份必填,信用卡手续费按实收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
@@ -5,7 +5,7 @@ const {Ledger}=require('../ledger'),{allocatePayers}=require('../material-pools'
|
||||
const D='2026-09-28',SALE='2026-09-29',DELIVERY='2026-09-30';
|
||||
const actor={id:'fifo-test-owner',name:'合成麦麦',role:'owner'},system={id:'fifo-test-system',name:'系统升级合成测试',role:'system'};
|
||||
const line=(extra={})=>({name:'合成足金',unit:'g',quantity:'1',pocket:'',payer:'owner',sale:'1200',costParts:{material:'',labor:'0',accessories:'0',other:'0'},costMaterial:{mode:'pool',poolId:D},...extra});
|
||||
const input=(lines=[line()],extra={})=>({date:SALE,customer:'合成客户',payment_account:'助理微信',fee_items:[],lines,...extra});
|
||||
const input=(lines=[line()],extra={})=>({date:SALE,customer:'合成客户',salesperson:'合成开单人',payment_account:'助理微信',fee_items:[],lines,...extra});
|
||||
const contents=l=>JSON.stringify(l.rows("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name").map(({name})=>[name,l.rows('SELECT * FROM "'+name+'"')]));
|
||||
const allocations=(l,id)=>l.detail(id).lines.map(row=>row.materialPool?.allocations);
|
||||
const immutable=l=>Object.fromEntries(['material_purchases','material_pool_settlements','payments','expenses','after_sales','settlements','movements','journal','inventory_snapshots'].map(table=>[table,l.rows('SELECT * FROM '+table+' ORDER BY rowid')]));
|
||||
|
||||
Reference in new issue
Block a user