Skip to main content
Participant
September 28, 2022
Question

Auto Generate Chronilogical Invoice No.

  • September 28, 2022
  • 2 replies
  • 240 views

Looking how to have a new invoice number automatically filled in when the pdf is opened. Invoice number to be chronilogcical starting at 38645.

    This topic has been closed for replies.

    2 replies

    MLW123Author
    Participant
    September 28, 2022

    I have this script plugged in, the 38645 is automatically in there when I open the pdf, but when i save it and open it again it doesn't change the number

     

    this.getField("Invoice").value = util.printf("38645", (Number(this.getField("Invoice").value) + 1));

    kglad
    Community Expert
    Community Expert
    September 28, 2022

    <moved from using the community >