Add time to invoiced date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yberges
    Senior Member
    • Jul 2022
    • 174

    Add time to invoiced date

    Hello is possible to create to a dynamic custom date in my invoice pdf like last dat for pay
    {{dateInvoiced +7d}}
    i read documentation but i didn't find anything
    thanks
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    #2
    have you tried this:

    Code:
    {{datetime\addDays(dateInvoiced, 7)}}
    Rabii
    Web Dev

    Comment

    • yberges
      Senior Member
      • Jul 2022
      • 174

      #3
      hello
      i will try ! thanks

      Comment

      • yberges
        Senior Member
        • Jul 2022
        • 174

        #4
        hello i try it but pdf generation is broken other idea ?

        Comment

        • rabii
          Active Community Member
          • Jun 2016
          • 1250

          #5
          well i guess you can create a new field e.g invoiceLastDatePay and then use formula like below:

          Code:
          invoiceLastDatePay = datetime\addDays(dateInvoiced, 7);
          In your invoice use the new field like below:

          Code:
          {{dateFormat invoiceLastDatePay_RAW format='YYYY MMMM DD'}}
          Rabii
          Web Dev

          Comment

          • yberges
            Senior Member
            • Jul 2022
            • 174

            #6
            Ah good idea !

            Comment

            • yberges
              Senior Member
              • Jul 2022
              • 174

              #7
              works thanks !

              Comment

              Working...