Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT MI.obj_num AS Obj_Num
,name_1 AS Name
,RVC.obj_num AS RVC_ID
,RVC.name AS RVC
,SUM(D.rpt_cnt) AS Quantity
,SUM(D.rpt_ttl) AS SubTotal
,SUM(D.inclusive_tax_ttl) AS TAX
,SUM(D.chk_ttl) AS Total
FROM micros.trans_dtl T
INNER JOIN micros.mi_dtl M ON T.trans_seq = M.trans_seq
INNER JOIN micros.dtl D ON T.trans_seq = D.trans_seq
AND D.dtl_seq = M.dtl_seq
INNER JOIN micros.mi_def MI ON M.mi_seq = MI.mi_seq
INNER JOIN micros.rvc_def RVC ON D.orig_rvc_seq = RVC.obj_num
WHERE T.training_status = 0
AND business_date between '20200110' and '20200115'
GROUP BY
MI.obj_num
,MI.name_1
,M.mi_seq
,RVC.obj_num
,RVC.name
ORDER BY MI.obj_num