Support internationnal BBAN (Basic Bank Account Number)
This commit is contained in:
parent
750e5a45c2
commit
9547530c4d
@ -279,9 +279,10 @@ DeskCode=Desk code
|
||||
BankAccountNumber=Account number
|
||||
BankAccountNumberKey=Key
|
||||
Residence=Domiciliation
|
||||
IbanPrefix=IBAN number
|
||||
IBANNumber=IBAN number
|
||||
IBAN=IBAN
|
||||
BIC=BIC/SWIFT
|
||||
BICNumber=BIC/SWIFT number
|
||||
ExtraInfos=Extra infos
|
||||
RegulatedOn=Regulated on
|
||||
ChequeNumber=Cheque N°
|
||||
|
||||
@ -297,9 +297,10 @@ DeskCode=C
|
||||
BankAccountNumber=Número cuenta
|
||||
BankAccountNumberKey=Llave RIB
|
||||
Residence=Domiciliación
|
||||
IbanPrefix=Prefijo IBAN
|
||||
IBANNumber=IBAN
|
||||
IBAN=IBAN
|
||||
BIC=BIC/SWIFT
|
||||
BICNumber=BIC/SWIFT
|
||||
ExtraInfos=Informaciones complementarias
|
||||
RegulatedOn=Pagar el
|
||||
ChequeNumber=Cheque nº
|
||||
|
||||
@ -280,9 +280,10 @@ DeskCode=Code guichet
|
||||
BankAccountNumber=Numéro compte
|
||||
BankAccountNumberKey=Clé RIB
|
||||
Residence=Domiciliation
|
||||
IbanPrefix=Prefix IBAN
|
||||
IBANNumber=Code IBAN
|
||||
IBAN=IBAN
|
||||
BIC=BIC/SWIFT
|
||||
BICNumber=Code BIC/SWIFT
|
||||
ExtraInfos=Informations complémentaires
|
||||
RegulatedOn=Réglé le
|
||||
ChequeNumber=Chèque N°
|
||||
|
||||
@ -273,9 +273,10 @@ DeskCode =Codice sportello
|
||||
BankAccountNumber =Numero di conto
|
||||
BankAccountNumberKey =Chiave
|
||||
Residence =Domiciliazione
|
||||
IbanPrefix =Codice IBAN
|
||||
IBANNumber =Codice IBAN
|
||||
IBAN =IBAN
|
||||
BIC =BIC/SWIFT
|
||||
BIC =BIC/SWIFT
|
||||
BICNumber =Codice BIC/SWIFT
|
||||
ExtraInfos =Extra info
|
||||
RegulatedOn =Regolamentato su
|
||||
ChequeNumber =Assegno N°
|
||||
|
||||
@ -221,9 +221,10 @@ DeskCode=Desk code
|
||||
BankAccountNumber=Account nummer
|
||||
BankAccountNumberKey=Key
|
||||
Residence=Domiciliation
|
||||
IbanPrefix=IBAN nummer
|
||||
IBANNumber=IBAN nummer
|
||||
IBAN=IBAN
|
||||
BIC=BIC/SWIFT
|
||||
BICNumber=BIC/SWIFT nummer
|
||||
ExtraInfos=Extra info
|
||||
RegulatedOn=Regulariseerd op
|
||||
ChequeNumber=Cheque N°
|
||||
|
||||
@ -684,16 +684,14 @@ function show_actions_done($conf,$langs,$db,$objsoc,$objcon='')
|
||||
*/
|
||||
function pdf_bank(&$pdf,$outputlangs,$curx,$cury,$account)
|
||||
{
|
||||
global $mysoc,$conf;
|
||||
|
||||
$pdf->SetXY ($curx, $cury);
|
||||
$pdf->SetFont('Arial','B',8);
|
||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities('PaymentByTransferOnThisBankAccount').':', 0, 'L', 0);
|
||||
$cury+=4;
|
||||
|
||||
// TODO We use country of company, but we should use country of bank account.
|
||||
if (empty($conf->global->FACTURE_SHOW_BANK_NUMBER_ONLY)
|
||||
|| $mysoc->pays_code == 'FR')
|
||||
$country_code=$account->getCountryCode();
|
||||
|
||||
if ($country_code == 'FR')
|
||||
{
|
||||
$pdf->SetFont('Arial','B',6);
|
||||
$pdf->line($curx+1, $cury, $curx+1, $cury+10 );
|
||||
@ -724,16 +722,16 @@ function pdf_bank(&$pdf,$outputlangs,$curx,$cury,$account)
|
||||
{
|
||||
$pdf->SetFont('Arial','B',6);
|
||||
$pdf->SetXY ($curx, $cury);
|
||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("BankAccountNumber").' : ' . $outputlangs->convToOutputCharset($account->number), 0, 'L', 0);
|
||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("BankAccountNumber").': ' . $outputlangs->convToOutputCharset($account->number), 0, 'L', 0);
|
||||
$cury-=9;
|
||||
}
|
||||
|
||||
$pdf->SetXY ($curx, $cury+12);
|
||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("Residence").' : ' . $outputlangs->convToOutputCharset($account->domiciliation), 0, 'L', 0);
|
||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("Residence").': ' . $outputlangs->convToOutputCharset($account->domiciliation), 0, 'L', 0);
|
||||
$pdf->SetXY ($curx, $cury+22);
|
||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("IbanPrefix").' : ' . $outputlangs->convToOutputCharset($account->iban_prefix), 0, 'L', 0);
|
||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("IBANNumber").': ' . $outputlangs->convToOutputCharset($account->iban), 0, 'L', 0);
|
||||
$pdf->SetXY ($curx, $cury+25);
|
||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("BIC").' : ' . $outputlangs->convToOutputCharset($account->bic), 0, 'L', 0);
|
||||
$pdf->MultiCell(90, 3, $outputlangs->transnoentities("BICNumber").': ' . $outputlangs->convToOutputCharset($account->bic), 0, 'L', 0);
|
||||
|
||||
return $pdf->getY();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user