Update api_stockmovements.class.php
This commit is contained in:
parent
f9d6438bae
commit
429ebe6662
@ -95,7 +95,7 @@ class StockMovements extends DolibarrApi
|
|||||||
*/
|
*/
|
||||||
public function index($sortfield = "t.rowid", $sortorder = 'ASC', $limit = 100, $page = 0, $sqlfilters = '')
|
public function index($sortfield = "t.rowid", $sortorder = 'ASC', $limit = 100, $page = 0, $sqlfilters = '')
|
||||||
{
|
{
|
||||||
global $db, $conf;
|
global $conf;
|
||||||
|
|
||||||
$obj_ret = array();
|
$obj_ret = array();
|
||||||
|
|
||||||
@ -176,7 +176,7 @@ class StockMovements extends DolibarrApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($qty == 0) {
|
if ($qty == 0) {
|
||||||
throw new RestException(503, "Making a stock movement with a quentity of 0 is not possible");
|
throw new RestException(503, "Making a stock movement with a quantity of 0 is not possible");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type increase or decrease
|
// Type increase or decrease
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user