Al,
Yes the SIl.ILSEQ is the order line from the SIL was created from.
In 405CD if the $ amount is negative and there is no RMA# one would presume
that it is a credit invoice.
I do not remember in 405CD if there is an original invoice field (SINVC) and
a "document number" IHDOCN in the SIH file, if so I would link the IHDOCN to
the RAR ARDOCN to get the "discount amount" in RAR (RDISCT), RDISCT is
discount taken/due, so if they have taken any terms discounts during ACR500
I am not sure that the field contains the actual discount due amount.
You want to only link to the RAR file if the record id is (ZI, or RI) and
the RSEQ = 0, this will get you all of the original invoices. If there is
not a field called IHDOCN, then link RINVC to RINVC in the RAR file.
Hope this helps.
-----Original Message-----
From: bpcs-l-bounces+dsweeney=phoenixbcinc.com@xxxxxxxxxxxx
[
mailto:bpcs-l-bounces+dsweeney=phoenixbcinc.com@xxxxxxxxxxxx] On Behalf Of
Al Mac
Sent: Wednesday, July 11, 2007 12:47 PM
To: BPCS ERP Discussion List
Subject: [BPCS-L] SIL SIH Invoice History Navigation
I'm working on a billing history report where I need to access data not in
the invoice files (SIL detail lines SIH header summary). We're 405 CD.
Is SIL.ILSEQ, which immediately follows SIL.ILORD (original order#), the
line # on that order# (ECL file) corresponding to the shipment being billed?
Is there any code showing what is a credit from BIL600 that has no RMA# or
can I only go by whether $ total is positive or negative? What's needed is
to show which records from the invoice history files are real invoices and
which are actually credits.
Another thing they need is when the invoice was due (assuming no discount
taken, vs. when due if discount is taken) ... I can calculate that from the
terms, but I figure that data has got to be already someplace in Accounts
Receivable RAR detail file, if I can only figure out relevant linkage from
invoice # to whatever would be the correct type of record with that
data. I would prefer to copy it from RAR because our terms are
periodically changed, which impacts different orders, invoices, etc.
-
Al Mac
As an Amazon Associate we earn from qualifying purchases.