瀏覽代碼

Fixed issue where receiving PO items was not updating the relevant stock holdings.

frogsoftware 8 月之前
父節點
當前提交
61fa5e9539
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      prs.stores/StockMovementStore.cs

+ 3 - 0
prs.stores/StockMovementStore.cs

@@ -68,6 +68,9 @@ public class StockMovementStore : BaseStore<StockMovement>
 
     protected override void AfterSave(IEnumerable<StockMovement> entities)
     {
+        mvtData = StockHoldingStore.LoadMovementData(this, entities.Select(x => x.ID).ToArray());
+        holdingData = StockHoldingStore.LoadStockHoldings(this, mvtData);
+        
         // Update the Relevant StockHolding with the details of this movement
         StockHoldingStore.ModifyHoldings(mvtData, holdingData, StockHoldingStore.Action.Increase);
         StockHoldingStore.SaveHoldings(this, holdingData);