I am using the following query to pull sales from Micros 3700:
SELECT micros.trans_dtl.chk_seq as CheckNo, micros.mi_def.obj_num AS PLU, micros.mi_def.name_1 AS ItemName, (micros.dtl.rpt_cnt) AS Qty, micros.dtl.date_time AS DateTimeOrdered, micros.lan_node_def.name AS Terminal,micros.dtl.chk_ttl AS RetailPrice, micros.trans_dtl.Trans_Seq as ID,'false' as IsCurrent FROM .....
The problem I am running into is that when a quantity modifier is used then I am getting a larger price per item sold than what is reported.
On the quick bar screen there is a list of numerical 'modifiers' that allow quantities to be rang faster. With the noted issue, I will get 5 Crown Royal sold at $30 each as opposed to 5 Crown Royals sold at $6 each (it is spitting out the revenue for that line item as opposed to the price per item). Should I be using something other than "micros.dtl.chk_ttl AS RetailPrice" to pull the correct retail value of each item sold when this item is rang with said quantity modifiers?
SELECT micros.trans_dtl.chk_seq as CheckNo, micros.mi_def.obj_num AS PLU, micros.mi_def.name_1 AS ItemName, (micros.dtl.rpt_cnt) AS Qty, micros.dtl.date_time AS DateTimeOrdered, micros.lan_node_def.name AS Terminal,micros.dtl.chk_ttl AS RetailPrice, micros.trans_dtl.Trans_Seq as ID,'false' as IsCurrent FROM .....
The problem I am running into is that when a quantity modifier is used then I am getting a larger price per item sold than what is reported.
On the quick bar screen there is a list of numerical 'modifiers' that allow quantities to be rang faster. With the noted issue, I will get 5 Crown Royal sold at $30 each as opposed to 5 Crown Royals sold at $6 each (it is spitting out the revenue for that line item as opposed to the price per item). Should I be using something other than "micros.dtl.chk_ttl AS RetailPrice" to pull the correct retail value of each item sold when this item is rang with said quantity modifiers?