fix: diff for currency
while currency of propal is not the same as global currency, we show both with propal currency in parentheses
This commit is contained in:
parent
90404da0a7
commit
e644782b53
1 changed files with 5 additions and 1 deletions
|
|
@ -348,9 +348,13 @@ if ($source == 'proposal') {
|
|||
print '</td></tr>'."\n";
|
||||
|
||||
// Amount
|
||||
|
||||
$amount = '<tr class="CTableRow2"><td class="CTableRow2">'.$langs->trans("Amount");
|
||||
$amount .= '</td><td class="CTableRow2">';
|
||||
$amount .= '<b>'.price($object->multicurrency_total_ttc, 0, $langs, 1, -1, -1, $object->multicurrency_code).'</b>';
|
||||
$amount .= '<b>'.price($object->total_ttc, 0, $langs, 1, -1, -1, $conf->currency).'</b>';
|
||||
if ($object->multicurrency_code != $conf->currency) {
|
||||
$amount .= ' ('.price($object->multicurrency_total_ttc, 0, $langs, 1, -1, -1, $object->multicurrency_code).')';
|
||||
}
|
||||
$amount .= '</td></tr>'."\n";
|
||||
|
||||
// Call Hook amountPropalSign
|
||||
|
|
|
|||
Loading…
Reference in a new issue