Update api_stockmovements.class.php

This commit is contained in:
Frédéric FRANCE 2021-05-25 23:49:49 +02:00 committed by GitHub
parent f9d6438bae
commit 429ebe6662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ class StockMovements extends DolibarrApi
*/
public function index($sortfield = "t.rowid", $sortorder = 'ASC', $limit = 100, $page = 0, $sqlfilters = '')
{
global $db, $conf;
global $conf;
$obj_ret = array();
@ -176,7 +176,7 @@ class StockMovements extends DolibarrApi
}
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