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

I have products with an expiry date. The amount of days are stored in a field (product model).

Is it possible to calculate this amount of days to a field (type of date) without any module changes?

The expiry date has to be shown in a delivery order. I tried several things with ReportDesigner in LibreOffice... something using timedelta-function but that was not working in LibreOffice.

Is there another way? Maybe a solution by using xml?

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

One solution is to leverage serial numbers (really lot numbers).

Each can have a 'best before date', and an 'end of life date' which can probably easily be shown alongside the product on each line.

You need to enable 'Track serial number on products' and 'Expiry date on serial numbers' under

Settings --> Configuration --> Warehouse

Each time you deliver goods, you assign each product that expires to a serial number. The serial number already shows up on the Delivery Order PDF so the other properties of the serial number should be available.

Haven't tried.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks, that helped me a lot.

Câu trả lời hay nhất

Yes, you can create a trigger or stored procedure in the database to do that.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
7256
1
thg 11 22
3130
3
thg 11 21
25694
1
thg 8 21
3442
3
thg 5 16
10155