report generation for customer last invoice

surisuri Member Posts: 123
hi good morning one and all
i want to generate a last invoice for every customer ,
can any one can give me suggestion please
thanks

Comments

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Sort the Customer Ledget Entries on Document Type,Customer No.,Posting Date
    Put filter on Cust. Ledger Entry with Customer No. and Document Type as Invoice and find the Last Entry
  • surisuri Member Posts: 123
    ya mohana thanks for giving reply
    from my table customer ledger entry
    i am getting document type =invoice and customer number and posting date

    but with customer number and posting date
    customer number posting date
    10000 1/1/12
    10000 2/1/12
    10000 3/1/12

    with same customer number i am having three differant dates ,how can we get last posting date
    i kept filter like this
    WHERE(Document Type=FILTER(Invoice))

    i have to write the code?
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    find the Last Entry

    Yes, you have to use FINDLAST
  • surisuri Member Posts: 123
    ya mohana thanks for giving reply
    i have written this code
    postingdate :="Cust. Ledger Entry".GETRANGEMAX("Cust. Ledger Entry"."Posting Date");
    i have assigned this postingdate variable to the text box source expression
    but it was throwing an error regarding set filter for customer ledger entry table
  • pawanppawanp Member Posts: 90
    To use GETMAXRANGE function you need to first apply filter to that field. See here

    To get the last invoice for the customer use FINDLAST as mohana has advised
Sign In or Register to comment.