donnarenia
Technical User
How can I write a formula that will do the following:
Show me all the invoices in a date range selected by a paramenter (?invoice date) however, some of the invoices have adjustments within the same date range....for those invoices I want to show the DATE RECEIVED DATE instead of the INVOICE DATE.
I wrote this formula:
if {AR.InvoiceDate}in {?Invoice Date} and {AR.Type}
= "I" and {CASH.Type} in ["A", "P"]
then {AR.InvoiceDate} else
if {CASH.DateReceived} in {?Invoice Date} and {AR.Type} = "I" and {CASH.Type}in ["A", "P"]
then {CASH.DateReceived}
but when I use it, it only show me the dates that have adjustments and the INVOICE DATE disappear.
Any Suggestions?
Show me all the invoices in a date range selected by a paramenter (?invoice date) however, some of the invoices have adjustments within the same date range....for those invoices I want to show the DATE RECEIVED DATE instead of the INVOICE DATE.
I wrote this formula:
if {AR.InvoiceDate}in {?Invoice Date} and {AR.Type}
= "I" and {CASH.Type} in ["A", "P"]
then {AR.InvoiceDate} else
if {CASH.DateReceived} in {?Invoice Date} and {AR.Type} = "I" and {CASH.Type}in ["A", "P"]
then {CASH.DateReceived}
but when I use it, it only show me the dates that have adjustments and the INVOICE DATE disappear.
Any Suggestions?