Example_ColoradoInvoicesvsRetailFee.rdl (76.5 KB)
We are running a daily exception report posted here as per Scottâs request.
This is pretty straight forward report report. I held off on BPM just because itâs pretty quick for the CSR to add in the fee as needed.
Some notes
(1) We donât use different address per line or release so if you do this you would need to modify this report. Iâm sure someone could modify it if you use different shipping to addresses per
(2) I send it each morning per SQL Server - could be automated to send as Epicor Report also, ie. BAQ and then create a Epicor Schedule
My Opinion on this/two cents.
My take is Colorado put in the fee to collect from Amazon (and other ecommerce). For us the administration work is far greater than the fee collected and I think we would pay many times the collected fee just not to deal with it.
SQL Code⌠(pretty straight forward )
select
kitflag,
prodcode,oh.ordertype_c,od.ordernum, od.orderline,
od.partnum,od.linedesc,
od.prodcode,od.kitflag,od.orderqty,
od.requestdate,
od.unitprice,
od.docunitprice,
shipto.city,
shipto.state,
ordermsc.misccode
from orderdtl od
join orderrel orel
on orel.ordernum = od.ordernum
and orel.orderline = od.orderline
join orderhed oh
on oh.ordernum = od.ordernum
and oh.company = od.company
join erp.shipto
on shipto.company = oh.company
and shipto.custnum = oh.custnum
and shipto.shiptonum = oh.shiptonum
and shipto.state = âCOâ
left outer join erp.ordermsc
on ordermsc.ordernum = oh.ordernum
âCRDF is the code for our miscellaneous fee
and ordermsc.misccode = âCRDFâ
and ordermsc.company = oh.company
â Modify for any product codes you want to exclude
where od.OpenLine = 1
and kitflag <> âCâ
and ProdCode <> âNO CHARGâ
and ProdCode <> âWARRANTYâ
and (@pExceptionsOnly = 0 or ISNULL(ordermsc.misccode,âNoneâ) <>âCRDFâ)