supportsvc
Technical User
Hello,
There's this report and on Suppress Freight and InvTotal (so not to repeat when there are multiples lines on an invoice)
How do I modify it to also handle if the 1st record doesn't have 000000 but 000001 instead?
I tried this
But still getting incorrect information. The report is exported out into Excel then sent to Customers.
So it's ItemCodes and sometimes the same itemcodes repeats per invoice, hence using the DetailSeqNo (Line item no).
However it appears on some invoices the 1st line item starts with 000000 and some starts with 000001.
Why the original OnLastRecord doesn't always work.
The reason for the suppress is that there are header records and detail records so the header record repeats for every detail record. Just want to show it once on the 1st detail record of the header record.
Hope that made sense?
Example:
Invoice = 1
DetailSeqNo = 000000
Itemcode = X
DetailSeqNo = 000001
ItemCode = X
DetailSeqNo = 000002
ItemCode = Y
Invoice = 2
DetailSeqNo = 000001
ItemCode = Y
DetailSeqNo = 000002
ItemCode = Y
DetailSeqNo = 000003
ItemCode = Z
Invoice = 3
DetailSeqNo = 000000
ItemCode = X
DetailSeqNo = 000001
ItemCode = Y
DetailSeqNo = 000002
ItemCode = Z
WHY it did that (re: assign the 1st line sometimes with 000000 and sometimes with 000001, do not know but that's what's in the system (tables) and dealing with that.
Need to NOT repeat where highlighted, it's the "header" info, freight amount and invoice total and should show only once per invoice (change on invoice).
Please help.
Thank you
There's this report and on Suppress Freight and InvTotal (so not to repeat when there are multiples lines on an invoice)
Code:
if OnLastRecord = False then
Next({AR_InvoiceHistoryDetail.DetailSeqNo}) <> '000000' Else False
How do I modify it to also handle if the 1st record doesn't have 000000 but 000001 instead?
I tried this
Code:
[code]if OnLastRecord = False then
Next({AR_InvoiceHistoryDetail.DetailSeqNo}) <> '000000' ({AR_InvoiceHistoryDetail.DetailSeqNo}) <> '000001' and Else False
So it's ItemCodes and sometimes the same itemcodes repeats per invoice, hence using the DetailSeqNo (Line item no).
However it appears on some invoices the 1st line item starts with 000000 and some starts with 000001.
Why the original OnLastRecord doesn't always work.
The reason for the suppress is that there are header records and detail records so the header record repeats for every detail record. Just want to show it once on the 1st detail record of the header record.
Hope that made sense?
Example:
Invoice = 1
DetailSeqNo = 000000
Itemcode = X
DetailSeqNo = 000001
ItemCode = X
DetailSeqNo = 000002
ItemCode = Y
Invoice = 2
DetailSeqNo = 000001
ItemCode = Y
DetailSeqNo = 000002
ItemCode = Y
DetailSeqNo = 000003
ItemCode = Z
Invoice = 3
DetailSeqNo = 000000
ItemCode = X
DetailSeqNo = 000001
ItemCode = Y
DetailSeqNo = 000002
ItemCode = Z
WHY it did that (re: assign the 1st line sometimes with 000000 and sometimes with 000001, do not know but that's what's in the system (tables) and dealing with that.
Need to NOT repeat where highlighted, it's the "header" info, freight amount and invoice total and should show only once per invoice (change on invoice).
Please help.
Thank you