Skip to main content

Configurable use-by calculation (days or months)

Overview

Each item now has its own rule for its use-by date. You can set shelf life in days or months. You can also count it from the packing date, the catch date, or the freezing date. Maritech Cloud calculates the use-by date automatically wherever a unit or pallet is saved without one. The date is the same no matter how the unit was created.

Item settings

You'll find these settings under Master Data > Items > Item Registry > General.

Field

What it does

Use By

The number of days or months the product keeps.

Expire Unit

Days or Months. Defaults to Days. All existing items are set to Days, so nothing changes for them.

Use By Calculated From

Catch date, Packing date, or Freezing date. Optional, and empty by default on all items. When empty, the packing date is used.

Hovering over Expire Unit shows: "Use-by date = base date + Use By (in days or months)."

Hovering over Use By Calculated From shows: "If no date is selected, the use-by date is calculated from the packing date. If the selected date is missing on a unit, the packing date is used."

How the date is calculated

Use By Calculated From sets the base date. If you leave it empty, Maritech Cloud uses the packing date. If that date is missing on the unit or pallet, Maritech Cloud also falls back to the packing date.

For Days, the use-by date is the base date plus the number of days. For example, a packing date of 15 May with a Use By of 10 days gives a use-by date of 25 May.

For Months, the use-by date is the same day of the month, N months later. If that day doesn't exist in the target month, Maritech Cloud uses the last day of that month. For example, a packing date of 15 May with a Use By of 1 month gives 15 June. A packing date of 31 January with a Use By of 1 month gives 28 February, or 29 February in a leap year.

Base date examples, all with a Use By of 10 days and a packing date of 5 March:

Use By Calculated From

Date on the unit

Use-by date

Freezing date

Frozen 1 March

11 March

Catch date

Caught 20 February

2 March

Freezing date

No freeze date on the unit

15 March (falls back to the packing date)

Where it applies

Manual pallet registration (P&S > Purchase Order > Pallet Registration): the Use By field starts empty. It shows the helper text "If left empty, calculated from the item's settings, if any." Maritech Cloud always shows this helper text, even when the item has no Use By configured. If you leave the field empty, Maritech Cloud calculates the use-by date when you save the pallet. If you enter a date yourself, Maritech Cloud saves that date as entered.

File import, unit import, and integrations: if you don't give a use-by date, Maritech Cloud calculates one when you save the record.

Maritech Packing: Maritech Cloud sends the expire unit, days or months, with the item sync. Packing then calculates in the same unit. Maritech Cloud never overwrites a use-by date that comes from Packing or from an import.

Public API: the item payload includes the new Expire Unit and Use By Calculated From fields.

Good to know

On manual pallet registration, Maritech Cloud shows the calculated use-by date only after you save, not in the form itself. If you need a specific date, enter it before saving.

Not included

This feature does not support years as an expire unit. The sales order "Use By Days" field is unchanged: it stays in days and keeps overriding item days at the packing plant. Maritech Cloud does not recalculate use-by dates on existing units and pallets, and it does not allocate or pick stock based on remaining shelf life.

Did this answer your question?