Update card.php
This commit is contained in:
parent
ee65860b27
commit
054b466e0a
@ -3242,7 +3242,11 @@ if ($action == 'create') {
|
|||||||
if ($object->multicurrency_code != $conf->currency || $object->multicurrency_tx != 1) {
|
if ($object->multicurrency_code != $conf->currency || $object->multicurrency_tx != 1) {
|
||||||
print '<tr><td colspan="'.$nbcols.'" class="right">';
|
print '<tr><td colspan="'.$nbcols.'" class="right">';
|
||||||
print '<span class="opacitymedium">';
|
print '<span class="opacitymedium">';
|
||||||
print $langs->trans('MulticurrencyRemainderToPay');
|
if ($resteapayeraffiche <= 0) {
|
||||||
|
print $langs->trans('RemainderToPayBackMulticurrency');
|
||||||
|
} else {
|
||||||
|
print $langs->trans('ExcessPaidMulticurrency');
|
||||||
|
}
|
||||||
print '</span>';
|
print '</span>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="right'.($resteapayeraffiche ? ' amountremaintopay' : (' '.$cssforamountpaymentcomplete)).'">'.(!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency).' '.price(price2num($object->multicurrency_tx*$resteapayeraffiche, 'MT')).'</td>';
|
print '<td class="right'.($resteapayeraffiche ? ' amountremaintopay' : (' '.$cssforamountpaymentcomplete)).'">'.(!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency).' '.price(price2num($object->multicurrency_tx*$resteapayeraffiche, 'MT')).'</td>';
|
||||||
@ -3272,6 +3276,21 @@ if ($action == 'create') {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '</span>';
|
print '</span>';
|
||||||
print '<td class="right'.($resteapayeraffiche ? ' amountremaintopay' : (' '.$cssforamountpaymentcomplete)).'">'.price($sign * $resteapayeraffiche).'</td>';
|
print '<td class="right'.($resteapayeraffiche ? ' amountremaintopay' : (' '.$cssforamountpaymentcomplete)).'">'.price($sign * $resteapayeraffiche).'</td>';
|
||||||
|
|
||||||
|
// Remainder to pay back Multicurrency
|
||||||
|
if ($object->multicurrency_code != $conf->currency || $object->multicurrency_tx != 1) {
|
||||||
|
print '<tr><td colspan="'.$nbcols.'" class="right">';
|
||||||
|
print '<span class="opacitymedium">';
|
||||||
|
if ($resteapayeraffiche <= 0) {
|
||||||
|
print $langs->trans('RemainderToPayBackMulticurrency');
|
||||||
|
} else {
|
||||||
|
print $langs->trans('ExcessPaidMulticurrency');
|
||||||
|
}
|
||||||
|
print '</span>';
|
||||||
|
print '</td>';
|
||||||
|
print '<td class="right'.($resteapayeraffiche ? ' amountremaintopay' : (' '.$cssforamountpaymentcomplete)).'">'.(!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency).' '.price(price2num($sign * $object->multicurrency_tx * $resteapayeraffiche, 'MT')).'</td>';
|
||||||
|
}
|
||||||
|
|
||||||
print '<td class="nowrap"> </td></tr>';
|
print '<td class="nowrap"> </td></tr>';
|
||||||
|
|
||||||
// Sold credit note
|
// Sold credit note
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user