内部备注必填并支持快捷标签,置换结算可带入当日加权料价

This commit is contained in:
summer committed 2026-11-30 15:40:40 +08:00
1 parent 6fe7504e52
commit ac9073471d
30 files changed
+194 -72

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:'合成客户',salesperson:'合成开单人',payment_account:'助理微信',lines:[line()],
const payload=(extra={})=>({date:D,customer:'合成客户',internal_note:'测试内部备注',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());