Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

HQ Ordering Guidance Error

Posted on by 360

When you create a Purchase Order of any type in HQ, and the stores have different cost and quantities the ordering guidance in the available, show any information, incorrect because this is not the real and total stock. If you have same Cost in all stores information showed correct.

This is the query from RMS HQ with error, this is because a Group by cost is used instead a avg and when cost are different in stores, return more than one row.  order guidance in HQ can't used as a valid guide. this is a HQ BUG.

 

Select a.ILC,a.Description, Sum(a.Available) as Available, Sum(a.Committed) as Committed, a.OnOrder as OnOrder,Sum(a.RestockLevel),Sum (a.ReorderPoint), a.Cost, a.LastCost, a.Price From ( select Item.ItemLookupCode as [ILC], Item.Description as [Description], isnull(ItemDynamic.Quantity-ItemDynamic.QuantityCommitted,0)as [Available], isnull(ItemDynamic.QuantityCommitted,0) as [Committed], isnull((SELECT SUM(QuantityOrdered - QuantityReceivedToDate) FROM PurchaseOrderEntry INNER JOIN PurchaseOrder ON PurchaseOrderEntry.PurchaseOrderID = PurchaseOrder.ID AND PurchaseOrderEntry.StoreID = PurchaseOrder.StoreID Left join ItemDynamic on PurchaseOrderEntry.ItemID = ItemDynamic.ItemID and PurchaseOrderEntry.StoreId = ItemDynamic.StoreId Where PurchaseOrder.Status <> 2 And (PurchaseOrder.POType <> 3 And PurchaseOrder.POType <> 5) And ItemDynamic.ItemID = 58874 AND purchaseorderentry.storeid in (select StoreID from worksheet_POLaterDisburse where worksheetID = 44633) ),0) As [OnOrder], Isnull(ItemDynamic.RestockLevel,0) as [RestockLevel], Isnull(ItemDynamic.ReorderPoint,0) as [ReorderPoint], ItemDynamic.SnapShotCost as Cost, ItemDynamic.SnapShotLastCost as LastCost, ItemDynamic.SnapShotPrice as Price From ItemDynamic inner join Item on Item.ID=ItemDynamic.ItemID Where ItemID =58874 And StoreID in (Select Storeid from worksheet_POLaterDisburse where worksheetID= 44633))a group by a.ILc,a.description,a.Cost,a.LastCost,a.Price,a.OnOrder

*This post is locked for comments

  • archelle16 Profile Picture
    archelle16 1,735 on at
    RE: HQ Ordering Guidance Error

    rms version please?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,302 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans