This Alert notifies a user when a price on an item on a GRPO has a a price that is more than 10% different than the current cost of that item.
Purpose of the Alert:
This report helps monitor purchases where the price on the purchase document will change the cost of the item.
The alert should be set to run each morning, so that the user catches all the purchase orders placed the previous day.
Example Results / Scenario:
This alert is very similar to the Purchase Order alert that shows the same thing. The difference is that after the Purchase oRder is entered, you will have ample time to go and make the change to the PO. But once a GRPO is input, it has already updated the cost of the item. So, this alert is very useful in notifying the user of items whose cost has been updated by a GRPO by more than 10%.
This Alert Displays Goods Receipt POs that have a variance
purchase price vs. the Average price
-- Here you can set the Variance Percentage to report
-- Any Variance Greater than this will show up in the alert
-- Replace this value with your desired percentage (original value is 10)
-- Here you can set the number of days prior to today that
-- will display in the alert
-- Replace this value (original value is 7)
-- These are the columns that will be displayed
, (T1.[LineTotal]/T1.[InvQty]) - T4.[AvgPrice]
T4.[AvgPrice] = 0
((((T1.[LineTotal]/T1.[InvQty]) - T4.[AvgPrice]) / T4.[AvgPrice] * 100))
-- Here are the tables the data comes from
T1.DocEntry = T0.DocEntry
T2.CardCode = T0.CardCode
T3.ItemCode = T1.ItemCode
T4.ItemCode = T1.ItemCode
T4.WhsCode = T1.WhsCode
T4.[AvgPrice] = 0
(((T1.[LineTotal]/T1.[InvQty]) - T4.[AvgPrice]) / 1 * 100)
(((T1.[LineTotal]/T1.[InvQty]) - T4.[AvgPrice]) /
(T4.[AvgPrice],1) * 100)
,T0.UpdateDate, GETDATE()) <= @NumDays