Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
This commit is contained in:
commit
269a8a2fa1
4 changed files with 5 additions and 6 deletions
|
|
@ -1986,7 +1986,7 @@ if ($action == 'create' && $usercancreate) {
|
|||
}
|
||||
|
||||
// Source / Channel - What trigger creation
|
||||
print '<tr><td>'.$langs->trans('Channel').'</td><td>';
|
||||
print '<tr><td>'.$langs->trans('Source').'</td><td>';
|
||||
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 '</td></tr>';
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -1120,9 +1120,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;
|
||||
|
|
@ -1347,6 +1345,7 @@ function updateTotalValuation() {
|
|||
}));
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue