Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
This commit is contained in:
commit
a0e723a05b
@ -832,7 +832,7 @@ class pdf_espadon extends ModelePdfExpedition
|
||||
$totalToShip = $tmparray['toship'];
|
||||
// Set trueVolume and volume_units not currently stored into database
|
||||
if ($object->trueWidth && $object->trueHeight && $object->trueDepth) {
|
||||
$object->trueVolume = price(($object->trueWidth * $object->trueHeight * $object->trueDepth), 0, $outputlangs, 0, 0);
|
||||
$object->trueVolume = $object->trueWidth * $object->trueHeight * $object->trueDepth;
|
||||
$object->volume_units = $object->size_units * 3;
|
||||
}
|
||||
|
||||
|
||||
@ -1331,7 +1331,7 @@ class FactureFournisseurRec extends CommonInvoice
|
||||
// We refresh the object in order to have all necessary data (like date_lim_reglement)
|
||||
$new_fac_fourn->fetch($new_fac_fourn->id);
|
||||
$result = $new_fac_fourn->generateDocument($facturerec->model_pdf, $langs);
|
||||
if ($result <= 0) {
|
||||
if ($result < 0) {
|
||||
$this->errors = $new_fac_fourn->errors;
|
||||
$this->error = $new_fac_fourn->error;
|
||||
$error++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user