Documentation

### Expiry Data

Batches, FEFO, and alerts — how Foreshelf knows what expires and when.

### Prerequisites and limits

Expiry reasoning requires a separate expiry date and quantity for each relevant lot. Without that data, Foreshelf cannot establish FEFO order or infer a missing date.

Alerts describe the data currently stored; they do not replace food, supplement or cosmetics compliance, quality checks, or a recall system. See the expiry-aware explanation and FEFO vs FIFO .

### Import batches

A CSV with SKU, batch number, quantity, and expiry date is enough. The format is flexible: comma or semicolon separators, UTF-8 or Latin-1 encoding, multiple date formats, and French or English headers. A preview always appears before anything is written to the database.

### FEFO automatique

FEFO (First Expired, First Out): each sale consumes the batch that expires soonest. It is applied automatically to every Shopify order, with no action required.

### Expiry alerts

| Severity | Window |
| --- | --- |
| Critical | Fewer than 30 days before expiry |
| Warning | 30 to 60 days |
| Info | 60 to 90 days |

### Re-import a known batch

If you re-import an existing batch (same SKU and batch number), Foreshelf preserves units already sold — only the difference between the old and new total quantity is adjusted. A re-import never silently restores stock that was already sold.

[expiry-aware explanation](https://foreshelf.app/expiry-aware-inventory.html)

[FEFO vs FIFO](https://foreshelf.app/fefo-vs-fifo.html)