Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3117 มุมมอง

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.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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)


อวตาร
ละทิ้ง

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 ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 22
2812
Restrict Studio ,to users แก้ไขแล้ว
1
ธ.ค. 24
3032
POS V17 Gift Card Sale Error แก้ไขแล้ว
2
ก.ค. 24
1612
1
ก.ค. 24
3188
0
ม.ค. 23
9