I am still in the learning part of my Macola experience. My company relies heavily on SQL based reports in part because some of the Macola solutions are clumsy at best. My boss wants a simple history transaction report for Inventory. So far the best I can come up with is a basic inventory report
SELECT iminvtrx_sql.trx_dt, iminvtrx_sql.item_no, iminvtrx_sql.comment, iminvtrx_sql.comment_2, iminvtrx_sql.quantity, imitmidx_sql.item_desc_1, iminvtrx_sql.ord_no, iminvtrx_sql.source, iminvtrx_sql.line_no, iminvtrx_sql.Loc, imitmidx_sql.search_desc, iminvtrx_sql.from_ctl_no, iminvtrx_sql.user_name
FROM iminvtrx_sql INNER JOIN imitmidx_sql ON iminvtrx_sql.item_no = imitmidx_sql.item_no
WHERE (((iminvtrx_sql.trx_dt) > '1/1/1900') AND ((iminvtrx_sql.item_no) = @TXItem) AND ((iminvtrx_sql.Loc) Like '%' + @TXLOC + '%'))
The problem is, it does not show balances before or after the given transaction and there is no way to know if it’s a positive or negative transaction. I have to believe someone has figured this out and does not mind sharing SQL that will help me pull a descent inventory transaction report out of the back side of Macola.
SELECT iminvtrx_sql.trx_dt, iminvtrx_sql.item_no, iminvtrx_sql.comment, iminvtrx_sql.comment_2, iminvtrx_sql.quantity, imitmidx_sql.item_desc_1, iminvtrx_sql.ord_no, iminvtrx_sql.source, iminvtrx_sql.line_no, iminvtrx_sql.Loc, imitmidx_sql.search_desc, iminvtrx_sql.from_ctl_no, iminvtrx_sql.user_name
FROM iminvtrx_sql INNER JOIN imitmidx_sql ON iminvtrx_sql.item_no = imitmidx_sql.item_no
WHERE (((iminvtrx_sql.trx_dt) > '1/1/1900') AND ((iminvtrx_sql.item_no) = @TXItem) AND ((iminvtrx_sql.Loc) Like '%' + @TXLOC + '%'))
The problem is, it does not show balances before or after the given transaction and there is no way to know if it’s a positive or negative transaction. I have to believe someone has figured this out and does not mind sharing SQL that will help me pull a descent inventory transaction report out of the back side of Macola.