This commit is contained in:
2021-02-24 17:55:24 +00:00
parent e06c24f2f4
commit 2704e5a98d

View File

@@ -376,7 +376,7 @@ namespace AyaNova.Biz
//if workorderitempartrequest item removed, need to fixup woitempartrequest
//BUT *only* if the woitempartrequest still exists and isn't completed already
//todo: BizActionsAsync - handle user changing a part and/or warehouse in an item just as with quantity, forgot about that one
//todo: BizActionsAsync - VendorPartNumber automatically set this if teh vendorid has changed from the list of parts there is
//todo: if vendorid has changed, need to update all part values into poitems
@@ -554,9 +554,10 @@ namespace AyaNova.Biz
else if (ThisPart.AlternativeWholeSalerId == vendorId)
poItem.VendorPartNumber = ThisPart.AlternativeWholeSalerNumber;
//Cost
//Costs
poItem.PurchaseOrderCost = ThisPart.Cost;
if (poItem.QuantityReceived > 0 && poItem.ReceivedCost == 0 && poItem.PurchaseOrderCost != 0)
poItem.ReceivedCost = poItem.PurchaseOrderCost;
}