Merge pull request #17722 from frederic34/patch-10

Update api_stockmovements.class.php
This commit is contained in:
Laurent Destailleur 2021-05-26 00:31:28 +02:00 committed by GitHub
commit 80c5aa7271
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