Hi all,
I am trying to use a wildcard in an If, then statement. It's not working because the field property is string and perhaps the use of quotation marks is looking for a literal value.
The numbering convention for the invoices are:
vendorID_Month/year services rendered_Month/year paid
so it might look like this: 123456_012007_012007. Any invoice where the month/year service rendered and paid are not the same should be marked as an adjustment. The vendor Id is different for each vendor so I tried to use a wildcard for the vendor ID portion of the invoice ID.
If {NS_INVOICE_ID)= "*_012007_022007", "*012007_032007"=, "*012007_042007",
"*012007_052007", "*012007_062007"] then "Adj" Else {NS_INVOICE_ID}
End If
I am trying to use a wildcard in an If, then statement. It's not working because the field property is string and perhaps the use of quotation marks is looking for a literal value.
The numbering convention for the invoices are:
vendorID_Month/year services rendered_Month/year paid
so it might look like this: 123456_012007_012007. Any invoice where the month/year service rendered and paid are not the same should be marked as an adjustment. The vendor Id is different for each vendor so I tried to use a wildcard for the vendor ID portion of the invoice ID.
If {NS_INVOICE_ID)= "*_012007_022007", "*012007_032007"=, "*012007_042007",
"*012007_052007", "*012007_062007"] then "Adj" Else {NS_INVOICE_ID}
End If