GPCsolutions / dolibarr

Dolibarr ERP/CRM is a modern software to manage your company or foundation activity (contacts, suppliers, invoices, orders, stocks, agenda, ...).It's an opensource software (wrote with PHP language) designed for small and medium companies, foundation and freelances. You can freely install, use and distribute it as a standalone application or as a web application to use it from every internet access and media.
http://www.dolibarr.org
GNU General Public License v3.0
2 stars 0 forks source link

[Replenishment] Improve order status detection #42

Open rdoursenaud opened 11 years ago

rdoursenaud commented 11 years ago

A race condition can occur when manual stock reception is enabled. The order won't be seen anymore but the stock doesn't exist yet. There is a possibility for ordering again in the meantime.

Add the following conditions to the existing:

if (manual stock reception) {
    if(! received) {
        echo "Order in progress";
    }
} else {
    echo "Needs order";
}
--- Want to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/1372308-improve-order-status-detection?utm_campaign=plugin&utm_content=tracker%2F424454&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F424454&utm_medium=issues&utm_source=github).