支持耳钉货盘克重与对数同步库存及历史盘点基准
This commit is contained in:
1 parent
ba15795f0a
commit
b6a0213a0c
28 files changed
+906
-161
No files matched your search
@@ -40,6 +40,7 @@
|
||||
goldPrice:numeric(line.goldPrice,'销售金价'),laborMode:pick(line.laborMode,['gram','piece'],'销售工费方式','gram'),laborRate:numeric(line.laborRate,'销售工费'),pieces:count(line.pieces??'1','计工费件数'),
|
||||
priceNote:string(line.priceNote,'销售单价说明',100),sale:numeric(line.sale,'本行销售额'),baseSale:numeric(line.baseSale??line.sale,'商品基础金额')};
|
||||
result.name=nameType==='其他'?result.customName:nameType;
|
||||
if(line.stockCount!=null&&String(line.stockCount).trim()!==''){result.stockCount=count(line.stockCount,'出库数量(对)');if(Number(result.stockCount)<1)throw new Error('出库数量(对)须为正整数,一对填1');}
|
||||
const rawCharges=line.charges??[];if(!Array.isArray(rawCharges)||rawCharges.length>100)throw new Error('每行最多填写100项附加项目');
|
||||
result.charges=rawCharges.map(rawCharge=>{
|
||||
const c=object(rawCharge,'附加项目'),old=string(c.id,'附加项目标识',36);if(old&&(!uuid.test(old)||seen.has(old)))throw new Error('附加项目标识无效或重复');if(old)seen.add(old);
|
||||
|
||||
Reference in new issue
Block a user