bstricklin
IS-IT--Management
I am trying to assign the 3 scheduled paydates for an invoice as well as the initial due date as shown below, the due date part is working but the paydates part which populates the scheduled payments that print on the bottom of the invoice is not. Has anyone ever tried something like this before?
IF MONTH(ttInvcHead.InvoiceDate) < 8 THEN ASSIGN
ttInvcHead.DueDate = DATE(8, 15, iInvYear)
ttInvcHead.PayDates = "5705~5736~5766".
ELSE IF MONTH(ttInvcHead.InvoiceDate) > 7 AND MONTH(ttInvcHead.InvoiceDate) < 10 THEN ASSIGN
ttInvcHead.DueDate = DATE(MONTH(ttInvcHead.InvoiceDate), DAY(ttInvcHead.InvoiceDate) + 90, YEAR(ttInvcHead.InvoiceDate)).
ELSE ASSIGN
ttInvcHead.DueDate = DATE(8, 15, iInvYear + 1).
IF MONTH(ttInvcHead.InvoiceDate) < 8 THEN ASSIGN
ttInvcHead.DueDate = DATE(8, 15, iInvYear)
ttInvcHead.PayDates = "5705~5736~5766".
ELSE IF MONTH(ttInvcHead.InvoiceDate) > 7 AND MONTH(ttInvcHead.InvoiceDate) < 10 THEN ASSIGN
ttInvcHead.DueDate = DATE(MONTH(ttInvcHead.InvoiceDate), DAY(ttInvcHead.InvoiceDate) + 90, YEAR(ttInvcHead.InvoiceDate)).
ELSE ASSIGN
ttInvcHead.DueDate = DATE(8, 15, iInvYear + 1).