Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
4147fc77cb
2 changed files with 5 additions and 1 deletions
|
|
@ -493,6 +493,10 @@ if (empty($reshook)) {
|
|||
|
||||
for ($i = 0; $i < $num; $i++) {
|
||||
$desc = ($lines[$i]->desc ? $lines[$i]->desc : $lines[$i]->libelle);
|
||||
// If we build one invoice for several supplier orders, append the source order reference on the invoice line.
|
||||
if (!empty($createbills_onebythird)) {
|
||||
$desc = dol_concatdesc($desc, $langs->trans("SupplierOrder").' '.$cmd->ref.' - '.dol_print_date($cmd->date, 'day'));
|
||||
}
|
||||
if ($lines[$i]->subprice < 0) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1080,7 +1080,7 @@ class Thirdparties extends DolibarrApi
|
|||
}
|
||||
|
||||
$result = $this->company->fetch($id);
|
||||
if (!is_array($result)) {
|
||||
if ($result <= 0) {
|
||||
throw new RestException(404, 'Thirdparty not found');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue