增加货盘新增改名与启停管理,保留历史库存关联
This commit is contained in:
1 parent
337b2a709f
commit
ba15795f0a
29 files changed
+748
-218
No files matched your search
@@ -127,7 +127,7 @@ test('停用货盘仍能核算旧订单与退货,新登记不再使用,也
|
||||
act(id,'confirm');assert.equal(l.inventoryStatus(owner).legacyInventory[0].reserved,1000);
|
||||
act(id,'receipt',{amount:'2',account:'助理微信',verified:true});act(id,'deliver',{verified:true});assert.equal(mg(l.inventory(),'臻金汇'),4000);
|
||||
act(id,'return',{reason:'历史原单退回',verified:true});assert.equal(mg(l.inventory(),'臻金汇'),5000);
|
||||
assert.throws(()=>stock({pocket:'臻金汇'}),/货盘无效/);assert.throws(()=>stock({kind:'transfer',to:'臻金汇'}),/目标货盘无效/);assert.throws(()=>save('臻金汇'),/已停用/);
|
||||
assert.throws(()=>stock({pocket:'臻金汇'}),/臻金汇.*已停用/);assert.throws(()=>stock({kind:'transfer',to:'臻金汇'}),/臻金汇.*已停用/);assert.throws(()=>save('臻金汇'),/已停用/);
|
||||
const status=l.inventoryStatus(owner);assert.ok(!status.current.some(r=>r.pocket==='臻金汇'));assert.equal(mg(status.legacyInventory,'臻金汇'),5000);
|
||||
assert.equal(mg(review(D3).snapshot.inventory,'臻金汇'),5000);assert.deepEqual(l.one('SELECT * FROM movements WHERE id=?',original.id),original);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user