Metadata-Version: 2.4
Name: ocyan.plugin.oscar_sequential_order_numbers
Version: 0.1.1
Summary: Sequential Oscar order-number generation.
Author-email: Mandel <info@mandelblog.com>
License-Expression: LicenseRef-Proprietary
Classifier: Framework :: Ocyan
Classifier: Environment :: Plugins
Requires-Python: <3.13,>=3.12
Description-Content-Type: text/x-rst
Requires-Dist: ocyan.core<2,>=1.2.13
Requires-Dist: ocyan.plugin.oscar<3,>=2.0.5
Requires-Dist: ocyan.plugin.oscar_order<3,>=2.0.2
Requires-Dist: django<5.3,>=5.2
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-django; extra == "test"
Requires-Dist: coverage; extra == "test"
Requires-Dist: ruff; extra == "test"
Requires-Dist: build; extra == "test"
Requires-Dist: freezegun; extra == "test"

Ocyan plugin Oscar sequential order numbers
===========================================

About Oscar sequential order numbers
------------------------------------
Generates sequential order numbers.
It uses the sequence or autoincement for the id field of Sequence model.
Start from a specific number by inserting the number into the DB. This will
only work if it is the largest number so far.

Installation
------------
Add `ocyan.plugin.oscar_sequential_order_numbers` to your projects dependencies.


Setting a starting point
------------------------
Use the `set_latest_order_number` management command to set the last currently used order number.
```
manage.py set_latest_order_number 123
```

It does make sure if it is actually higher then the existing values.
