diff --git a/htdocs/supplier_proposal/card.php b/htdocs/supplier_proposal/card.php index 80c144f43ba..fa60f961f10 100644 --- a/htdocs/supplier_proposal/card.php +++ b/htdocs/supplier_proposal/card.php @@ -1815,48 +1815,55 @@ if ($action == 'create') { 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 '|||
| '.$langs->trans('AmountHT').' | '; - print ''.price($object->total_ht, '', $langs, 0, - 1, - 1, $conf->currency).' | '; + 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 '' . price($object->multicurrency_total_ht, '', $langs, 0, -1, -1, $object->multicurrency_code) . ' | '; + } 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)) { + // Multicurrency Amount VAT + 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)) { + // Multicurrency Amount TTC + print '' . price($object->total_ttc, '', $langs, 0, -1, -1, $object->multicurrency_code) . ' | '; + } print '