Merge pull request #18506 from henrynopo/patch-2
Supplier Invoice - Multicurrency remainder to pay (updated)
This commit is contained in:
commit
389660cb3a
@ -3231,19 +3231,21 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
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>';
|
||||||
|
|
||||||
// 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('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><td> </td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="nowrap"> </td></tr>';
|
|
||||||
} else // Credit note
|
} else // Credit note
|
||||||
{
|
{
|
||||||
$cssforamountpaymentcomplete = 'amountpaymentneutral';
|
$cssforamountpaymentcomplete = 'amountpaymentneutral';
|
||||||
@ -3266,8 +3268,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><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 ? ' amountremaintopay' : (' '.$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>';
|
||||||
|
|||||||
@ -234,12 +234,17 @@ AlreadyPaidBack=Already paid back
|
|||||||
AlreadyPaidNoCreditNotesNoDeposits=Already paid (without credit notes and down payments)
|
AlreadyPaidNoCreditNotesNoDeposits=Already paid (without credit notes and down payments)
|
||||||
Abandoned=Abandoned
|
Abandoned=Abandoned
|
||||||
RemainderToPay=Remaining unpaid
|
RemainderToPay=Remaining unpaid
|
||||||
|
RemainderToPayMulticurrency=Remaining unpaid, original currency
|
||||||
RemainderToTake=Remaining amount to take
|
RemainderToTake=Remaining amount to take
|
||||||
|
RemainderToTakeMulticurrency=Remaining amount to take, original currency
|
||||||
RemainderToPayBack=Remaining amount to refund
|
RemainderToPayBack=Remaining amount to refund
|
||||||
|
RemainderToPayBackMulticurrency=Remaining amount to refund, original currency
|
||||||
Rest=Pending
|
Rest=Pending
|
||||||
AmountExpected=Amount claimed
|
AmountExpected=Amount claimed
|
||||||
ExcessReceived=Excess received
|
ExcessReceived=Excess received
|
||||||
|
ExcessReceivedMulticurrency=Excess received, original currency
|
||||||
ExcessPaid=Excess paid
|
ExcessPaid=Excess paid
|
||||||
|
ExcessPaidMulticurrency=Excess paid, original currency
|
||||||
EscompteOffered=Discount offered (payment before term)
|
EscompteOffered=Discount offered (payment before term)
|
||||||
EscompteOfferedShort=Discount
|
EscompteOfferedShort=Discount
|
||||||
SendBillRef=Submission of invoice %s
|
SendBillRef=Submission of invoice %s
|
||||||
@ -591,6 +596,5 @@ SituationTotalRayToRest=Remainder to pay without taxe
|
|||||||
PDFSituationTitle=Situation n° %d
|
PDFSituationTitle=Situation n° %d
|
||||||
SituationTotalProgress=Total progress %d %%
|
SituationTotalProgress=Total progress %d %%
|
||||||
SearchUnpaidInvoicesWithDueDate=Search unpaid invoices with a due date = %s
|
SearchUnpaidInvoicesWithDueDate=Search unpaid invoices with a due date = %s
|
||||||
RegisterPaymentAndClasiffiedPayed=Enter payment and classify 'Paid'
|
|
||||||
NoPaymentAvailable=No payment available for %s
|
NoPaymentAvailable=No payment available for %s
|
||||||
PaymentRegisteredAndInvoiceSetToPaid=Payment registered and invoice %s set to paid
|
PaymentRegisteredAndInvoiceSetToPaid=Payment registered and invoice %s set to paid
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user