fix minimum quantity on stock movement

by fixing another issue on the batch management in the API, I introduced
a bug on the stock quantity decrease.

[see: X]
This commit is contained in:
Laurent De Coninck
2020-01-22 08:13:00 +01:00
parent edc79e7398
commit 73ee655dde

View File

@@ -164,7 +164,7 @@ class StockMovements extends DolibarrApi
*
* @param int $product_id Id product id {@min 1} {@from body} {@required true}
* @param int $warehouse_id Id warehouse {@min 1} {@from body} {@required true}
* @param float $qty Qty to add (Use negative value for a stock decrease) {@min 0} {@message qty must be higher than 0} {@from body} {@required true}
* @param float $qty Qty to add (Use negative value for a stock decrease) {@from body} {@required true}
* @param string $lot Lot {@from body}
* @param string $movementcode Movement code {@example INV123} {@from body}
* @param string $movementlabel Movement label {@example Inventory number 123} {@from body}