diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index 7f28a26fa9b..a0e2aefdbeb 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -2755,53 +2755,50 @@ if ($action == 'create') { print '
| ' . $langs->trans('AmountHT') . ' | '; + print '' . price($object->total_ht, '', $langs, 0, -1, -1, $conf->currency) . ' | '; if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { - // Multicurrency Amount HT - print '|
| '.$form->editfieldkey('MulticurrencyAmountHT', 'multicurrency_total_ht', '', $object, 0).' | '; - print ''.price($object->multicurrency_total_ht, '', $langs, 0, - 1, - 1, (!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency)).' | '; - print '|
| '.$form->editfieldkey('MulticurrencyAmountVAT', 'multicurrency_total_tva', '', $object, 0).' | '; - print ''.price($object->multicurrency_total_tva, '', $langs, 0, - 1, - 1, (!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency)).' | '; - print '|
| '.$form->editfieldkey('MulticurrencyAmountTTC', 'multicurrency_total_ttc', '', $object, 0).' | '; - print ''.price($object->multicurrency_total_ttc, '', $langs, 0, - 1, - 1, (!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency)).' | '; - print '' . price($object->multicurrency_total_ht, '', $langs, 0, -1, -1, $object->multicurrency_code) . ' | '; } - - // Amount HT - print '
| '.$langs->trans('AmountHT').' | '; - print ''.price($object->total_ht, '', $langs, 0, - 1, - 1, $conf->currency).' | '; print '|
| '.$langs->trans('AmountVAT').' | '; - print ''.price($object->total_tva, '', $langs, 0, - 1, - 1, $conf->currency).' | '; + print '|
| ' . $langs->trans('AmountVAT') . ' | '; + print '' . price($object->total_tva, '', $langs, 0, -1, -1, $conf->currency) . ' | '; + if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { + print '' . price($object->multicurrency_total_tva, '', $langs, 0, -1, -1, $object->multicurrency_code) . ' | '; + } print '
| '.$langs->transcountry("AmountLT1", $mysoc->country_code).' | '; - print ''.price($object->total_localtax1, '', $langs, 0, - 1, - 1, $conf->currency).' | '; - print '|
| '.$langs->transcountry("AmountLT2", $mysoc->country_code).' | '; - print ''.price($object->total_localtax2, '', $langs, 0, - 1, - 1, $conf->currency).' | '; + if ($mysoc->localtax1_assuj == "1" || $object->total_localtax1 != 0) { + print '|
| ' . $langs->transcountry("AmountLT1", $mysoc->country_code) . ' | '; + print '' . price($object->total_localtax1, '', $langs, 0, -1, -1, $conf->currency) . ' | '; + if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { + print '' . price($object->total_localtax1, '', $langs, 0, -1, -1, $object->multicurrency_code) . ' | '; + } print '
| ' . $langs->transcountry("AmountLT2", $mysoc->country_code) . ' | '; + print '' . price($object->total_localtax2, '', $langs, 0, -1, -1, $conf->currency) . ' | '; + if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { + print '' . price($object->total_localtax2, '', $langs, 0, -1, -1, $object->multicurrency_code) . ' | '; + } + print '
| '.$langs->trans('AmountTTC').' | '; - print ''.price($object->total_ttc, '', $langs, 0, - 1, - 1, $conf->currency).' | '; + print '|
| ' . $langs->trans('AmountTTC') . ' | '; + print '' . price($object->total_ttc, '', $langs, 0, -1, -1, $conf->currency) . ' | '; + if (isModEnabled("multicurrency") && ($object->multicurrency_code && $object->multicurrency_code != $conf->currency)) { + print '' . price($object->total_ttc, '', $langs, 0, -1, -1, $object->multicurrency_code) . ' | '; + } print '
| ' . $langs->trans('Status') . ' | ' . $object->getLibStatut(4) . ' | |