J
J.J.
hi i have a query where i need formula to numerate records from minDate to
maxDate reffering to CUSTOMER_ID to make a valid invoice number.
here an example:
CUSTOMER_ID=1
PAY_DATE=08/07
PAID=280,00$
INVOICE_NR=1
CUSTOMER_ID=1
PAY_DATE=08/07
PAID=244,00$
INVOICE_NR=1
CUSTOMER_ID=1
PAY_DATE=08/07
PAID=3054,00$
INVOICE_NR=1
CUSTOMER_ID=1
PAY_DATE=10/07
PAID=244,00$
INVOICE_NR=2
so first three records should have INVOICE_NR=1 because they're all one the
same invoice and the 4'th record should have the INVOICE_NR=2.
the next problem is that when:
CUSTOMER_ID=2
PAY_DATE=06/07
PAID=248,00$
INVOICE_NR=1
so when the CUSTOMER_ID=2 the minPayDate should have the INVOICE_NR also 1.
Hope you could help me. Thanks a lot
J.J.
maxDate reffering to CUSTOMER_ID to make a valid invoice number.
here an example:
CUSTOMER_ID=1
PAY_DATE=08/07
PAID=280,00$
INVOICE_NR=1
CUSTOMER_ID=1
PAY_DATE=08/07
PAID=244,00$
INVOICE_NR=1
CUSTOMER_ID=1
PAY_DATE=08/07
PAID=3054,00$
INVOICE_NR=1
CUSTOMER_ID=1
PAY_DATE=10/07
PAID=244,00$
INVOICE_NR=2
so first three records should have INVOICE_NR=1 because they're all one the
same invoice and the 4'th record should have the INVOICE_NR=2.
the next problem is that when:
CUSTOMER_ID=2
PAY_DATE=06/07
PAID=248,00$
INVOICE_NR=1
so when the CUSTOMER_ID=2 the minPayDate should have the INVOICE_NR also 1.
Hope you could help me. Thanks a lot
J.J.