mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
This commit is contained in:
commit
faac9602f8
|
|
@ -473,7 +473,7 @@ class doc_generic_myobject_odt extends ModelePDFMyObject
|
|||
$reshook = $hookmanager->executeHooks('beforeODTSave', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
|
||||
|
||||
// Write new file
|
||||
if (getDolGlobalInt('MAIN_ODT_AS_PDF')) {
|
||||
if (getDolGlobalString('MAIN_ODT_AS_PDF')) {
|
||||
try {
|
||||
$odfHandler->exportAsAttachedPDF($file);
|
||||
} catch (Exception $e) {
|
||||
|
|
|
|||
|
|
@ -1108,9 +1108,7 @@ if ($resql) {
|
|||
|
||||
//PMP Real
|
||||
print '<td class="right">';
|
||||
|
||||
|
||||
if (!empty($obj->pmp_real)) {
|
||||
if (!empty($obj->pmp_real) || (string) $obj->pmp_real === '0') {
|
||||
$pmp_real = $obj->pmp_real;
|
||||
} else {
|
||||
$pmp_real = $product_static->pmp;
|
||||
|
|
@ -1335,6 +1333,7 @@ function updateTotalValuation() {
|
|||
}));
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user