Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2956 Vizualizări

By default, the duration of gift cards is one year, so when you create a gift card, the expiration date will be the date of today + one year. In V15 we can not modify this expiration delay with standard features BUT we have a solution with Studio.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Open the POS app, open Studio and go in automated actions, create a new one:


  • Set up a name

  • Model: Gift card

  • Trigger: at the creation

  • Action to do: Update the record


Data 

  • Field: Expired date (Gift Card)

  • Evaluation type: Python expression

  • Value: record.create_date+ datetime.timedelta(days=XX)


Imagine profil
Abandonează

I just want to say, it doesn't have to be through Studio, because "Automated Actions" are available to install even in Community Edition!

Related Posts Răspunsuri Vizualizări Activitate
1
apr. 22
2675
1
dec. 24
2850
2
iul. 24
1519
1
iul. 24
3009
0
ian. 23
9