Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2971 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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)


Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 22
2689
1
thg 12 24
2865
2
thg 7 24
1527
1
thg 7 24
3052
0
thg 1 23
9