Skip to Content
Menu
This question has been flagged
1 Reply
1823 Views

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.

Avatar
Discard
Author Best Answer

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)


Avatar
Discard

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 Replies Views Activity
1
Apr 22
1585
1
Nov 24
876
2
Jul 24
295
1
Jul 24
1326
0
Jan 23
9