diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 025d223ad2a..0762ac75e62 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -1986,7 +1986,7 @@ if ($action == 'create' && $usercancreate) { } // Source / Channel - What trigger creation - print ''.$langs->trans('Channel').''; + print ''.$langs->trans('Source').''; print img_picto('', 'question', 'class="pictofixedwidth"'); $form->selectInputReason((GETPOSTISSET('demand_reason_id') ? GETPOST('demand_reason_id') : $demand_reason_id), 'demand_reason_id', '', 1, 'maxwidth200 widthcentpercentminusx'); print ''; diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php index 79290e8fd64..708cc264c95 100644 --- a/htdocs/commande/list.php +++ b/htdocs/commande/list.php @@ -193,7 +193,7 @@ $arrayfields = array( 'c.fk_shipping_method' => array('label' => "SendingMethod", 'checked' => -1, 'position' => 66 , 'enabled' => isModEnabled("shipping")), 'c.fk_cond_reglement' => array('label' => "PaymentConditionsShort", 'checked' => -1, 'position' => 67), 'c.fk_mode_reglement' => array('label' => "PaymentMode", 'checked' => -1, 'position' => 68), - 'c.fk_input_reason' => array('label' => "Channel", 'checked' => -1, 'position' => 69), + 'c.fk_input_reason' => array('label' => "Origin", 'checked' => -1, 'position' => 69), 'c.total_ht' => array('label' => "AmountHT", 'checked' => 1, 'position' => 75), 'c.total_vat' => array('label' => "AmountVAT", 'checked' => 0, 'position' => 80), 'c.total_ttc' => array('label' => "AmountTTC", 'checked' => 0, 'position' => 85), diff --git a/htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php b/htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php index 1d0cb1e2b5c..7b7c9b3e99c 100644 --- a/htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php +++ b/htdocs/modulebuilder/template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php @@ -474,7 +474,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) { diff --git a/htdocs/product/inventory/inventory.php b/htdocs/product/inventory/inventory.php index c5f36f8cc21..cba2e8d99f1 100644 --- a/htdocs/product/inventory/inventory.php +++ b/htdocs/product/inventory/inventory.php @@ -1120,9 +1120,7 @@ if ($resql) { //PMP Real print ''; - - - 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; @@ -1347,6 +1345,7 @@ function updateTotalValuation() { })); } +