Create suppliers orders from customer orders.
- Transfer this module in your custom folder
- Create an extrafield in Suppliers
- Activate the module
Complementary attributes (orders)
Attribute | Value |
---|---|
Label | As you want |
Attribute code | reappro |
Type | Select from table |
Value | commande:ref:rowid |
Position | 0 |
Default value (Database) | |
Unique | |
Can always be edited | Yes |
Hidden | |
Show by default on list view |
From selected Validated supplier orders create or update draft suppliers orders.
From the selected supplier orders :
-
group lines by products
-
For each product count the needs, then substract the quantity already in order (draft, validated, approved).
-
Works with stock alerts
-
The supplier orders will be tagged with the custom orders.
-
Search a supplier order from the user with the product (update the line with new quantity best price)
-
Search a supplier order with this product (update the line with new quantity best price)
-
Search a supplier order (create the line)
-
If no result (create the supplier order)
First test in non production Dolibarr.