Merge pull request #18507 from henrynopo/patch-5
Customer Invoice - Multicurrency Remaining to Pay (updated)
This commit is contained in:
commit
5cd609e14e
@ -5064,23 +5064,27 @@ if ($action == 'create') {
|
|||||||
// Remainder to pay
|
// Remainder to pay
|
||||||
print '<tr><td colspan="'.$nbcols.'" class="right">';
|
print '<tr><td colspan="'.$nbcols.'" class="right">';
|
||||||
print '<span class="opacitymedium">';
|
print '<span class="opacitymedium">';
|
||||||
|
if ($resteapayeraffiche >= 0) {
|
||||||
print $langs->trans('RemainderToPay');
|
print $langs->trans('RemainderToPay');
|
||||||
if ($resteapayeraffiche < 0) {
|
} else {
|
||||||
print ' ('.$langs->trans('ExcessReceived').')';
|
print $langs->trans('ExcessReceived');
|
||||||
}
|
}
|
||||||
print '</span>';
|
print '</span>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="right'.($resteapayeraffiche ? ' amountremaintopay' : (' '.$cssforamountpaymentcomplete)).'">'.price($resteapayeraffiche).'</td>';
|
print '<td class="right'.($resteapayeraffiche ? ' amountremaintopay' : (' '.$cssforamountpaymentcomplete)).'">'.price($resteapayeraffiche).'</td><td> </td></tr>';
|
||||||
print '<td class="nowrap"> </td></tr>';
|
|
||||||
|
|
||||||
// Remainder to pay Multicurrency
|
// Remainder to pay Multicurrency
|
||||||
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('RemainderToPayMulticurrency');
|
||||||
|
} else {
|
||||||
|
print $langs->trans('ExcessReceivedMulticurrency');
|
||||||
|
}
|
||||||
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><td> </td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retained warranty : usualy use on construction industry
|
// Retained warranty : usualy use on construction industry
|
||||||
@ -5121,8 +5125,21 @@ if ($action == 'create') {
|
|||||||
print ' ('.$langs->trans('ExcessPaid').')';
|
print ' ('.$langs->trans('ExcessPaid').')';
|
||||||
}
|
}
|
||||||
print ' :</td>';
|
print ' :</td>';
|
||||||
print '<td class="right'.($resteapayeraffiche ? ' amountremaintopayback' : (' '.$cssforamountpaymentcomplete)).'">'.price($sign * $resteapayeraffiche).'</td>';
|
print '<td class="right'.($resteapayeraffiche ? ' amountremaintopayback' : (' '.$cssforamountpaymentcomplete)).'">'.price($sign * $resteapayeraffiche).'</td><td> </td></tr>';
|
||||||
print '<td class="nowrap"> </td></tr>';
|
|
||||||
|
// 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 ? ' amountremaintopayback' : (' '.$cssforamountpaymentcomplete)).'">'.(!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency).' '.price(price2num($sign * $object->multicurrency_tx * $resteapayeraffiche, 'MT')).'</td><td> </td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
// Sold credit note
|
// Sold credit note
|
||||||
// print '<tr><td colspan="'.$nbcols.'" class="right">'.$langs->trans('TotalTTC').' :</td>';
|
// print '<tr><td colspan="'.$nbcols.'" class="right">'.$langs->trans('TotalTTC').' :</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user