Add patch from Kim Tore Jensen

This commit is contained in:
Laurent Destailleur
2010-01-23 23:18:43 +00:00
parent 73c67bb575
commit 94b44739e5
6 changed files with 16 additions and 11 deletions

View File

@@ -518,6 +518,7 @@ class pdf_crabe extends ModelePDFFactures
$oper = 'CHQ'; $oper = 'CHQ';
break; break;
} }
$oper = $outputlangs->transnoentities("PaymentTypeShort" . $oper);
$pdf->MultiCell(20, 3, $oper, 0, 'L', 0); $pdf->MultiCell(20, 3, $oper, 0, 'L', 0);
$pdf->SetXY ($tab3_posx+60, $tab3_top+$y); $pdf->SetXY ($tab3_posx+60, $tab3_top+$y);
$pdf->MultiCell(20, 3, $row[3], 0, 'L', 0); $pdf->MultiCell(20, 3, $row[3], 0, 'L', 0);

View File

@@ -429,6 +429,7 @@ class pdf_oursin extends ModelePDFFactures
$oper = 'CHQ'; $oper = 'CHQ';
break; break;
} }
$oper = $outputlangs->transnoentities("PaymentTypeShort" . $oper);
$pdf->MultiCell(20, 3, $oper, 0, 'L', 0); $pdf->MultiCell(20, 3, $oper, 0, 'L', 0);
$pdf->SetXY ($tab3_posx+60, $tab3_top+$y); $pdf->SetXY ($tab3_posx+60, $tab3_top+$y);
$pdf->MultiCell(20, 3, $row[3], 0, 'L', 0); $pdf->MultiCell(20, 3, $row[3], 0, 'L', 0);

View File

@@ -32,6 +32,7 @@ CardBill=Fakturakort
PredefinedInvoices=Forhåndsdefinerte fakturaer PredefinedInvoices=Forhåndsdefinerte fakturaer
Invoice=Faktura Invoice=Faktura
Invoices=Fakturaer Invoices=Fakturaer
InvoiceDeposit=Faktura
InvoiceLine=Fakturalinje InvoiceLine=Fakturalinje
InvoiceCustomer=Kundefaktura InvoiceCustomer=Kundefaktura
CustomerInvoice=Kundefaktura CustomerInvoice=Kundefaktura
@@ -112,7 +113,7 @@ ErrorInvoiceAvoirMustBeNegative=Feil: Korrigeringsfaktura må ha negativt beløp
ErrorInvoiceOfThisTypeMustBePositive=Feil: Denne fakturatypen må ha postitivt beløp ErrorInvoiceOfThisTypeMustBePositive=Feil: Denne fakturatypen må ha postitivt beløp
ErrorCantCancelIfReplacementInvoiceNotValidated=Feil: Kan ikke kansellere en faktura som er erstattet av en annen faktura som fortsatt er i klademodus ErrorCantCancelIfReplacementInvoiceNotValidated=Feil: Kan ikke kansellere en faktura som er erstattet av en annen faktura som fortsatt er i klademodus
BillFrom=Fra BillFrom=Fra
BillTo=Fakturamottager BillTo=Fakturamottaker
ActionsOnBill=Handlinger på faktura ActionsOnBill=Handlinger på faktura
NewBill=Ny faktura NewBill=Ny faktura
Prélèvements=Utestående ordre Prélèvements=Utestående ordre
@@ -183,7 +184,7 @@ SendReminderBillByMail=Send påminnelse med e-post
RelatedCommercialProposals=Relaterte tilbud RelatedCommercialProposals=Relaterte tilbud
MenuToValid=Til godkjenning MenuToValid=Til godkjenning
DateMaxPayment=Forfallsdato DateMaxPayment=Forfallsdato
DateEcheance=Forfallsadato DateEcheance=Forfallsdato
DateInvoice=Fakturadato DateInvoice=Fakturadato
NoInvoice=Ingen faktura NoInvoice=Ingen faktura
ClassifyBill=Klassifiser faktura ClassifyBill=Klassifiser faktura
@@ -256,10 +257,10 @@ PaymentCondition60D=60 dager
PaymentConditionShort60DENDMONTH=Leveringsmåned + 60 dager PaymentConditionShort60DENDMONTH=Leveringsmåned + 60 dager
PaymentCondition60DENDMONTH=Leveringsmåned + 60 dager PaymentCondition60DENDMONTH=Leveringsmåned + 60 dager
# PaymentType # PaymentType
PaymentTypeVIR=Bankinnskudd PaymentTypeVIR=Bankgiro
PaymentTypeShortVIR=Bankinskudd PaymentTypeShortVIR=Bankgiro
PaymentTypePRE=Bankgiro PaymentTypePRE=Bankinnskudd
PaymentTypeShortPRE=Bankgiro PaymentTypeShortPRE=Bankinnskudd
PaymentTypeLIQ=Kontant PaymentTypeLIQ=Kontant
PaymentTypeShortLIQ=Kontant PaymentTypeShortLIQ=Kontant
PaymentTypeCB=Kredittkort PaymentTypeCB=Kredittkort
@@ -276,8 +277,8 @@ BankDetails=Bankopplysninger
BankCode=Bank code (ikke i Norge) BankCode=Bank code (ikke i Norge)
DeskCode=Desk code (ikke i Norge) DeskCode=Desk code (ikke i Norge)
BankAccountNumber=Kontonummer BankAccountNumber=Kontonummer
BankAccountNumberKey=Key (ikke i Norge) BankAccountNumberKey=Nøkkel
Residence=Domiciliation (ikke i Norge) Residence=Kontoadresse
IBANNumber=IBAN-nummer IBANNumber=IBAN-nummer
IBAN=IBAN IBAN=IBAN
BIC=BIC/SWIFT BIC=BIC/SWIFT
@@ -297,7 +298,7 @@ IntracommunityVATNumber=Intracommunity number of VAT (ikke i Norge)
PaymentByChequeOrderedTo=Sjekkbetaling til %s send til PaymentByChequeOrderedTo=Sjekkbetaling til %s send til
PaymentByChequeOrderedToShort=Sjekkbetaling til PaymentByChequeOrderedToShort=Sjekkbetaling til
SendTo=sendt til SendTo=sendt til
PaymentByTransferOnThisBankAccount=Vennligst betal til følgende bakkonto PaymentByTransferOnThisBankAccount=Vennligst betal til følgende bankkonto
VATIsNotUsedForInvoice=* Avgiftsfritt VATIsNotUsedForInvoice=* Avgiftsfritt
LawApplicationPart1=Alle varer forblir vår eiendom LawApplicationPart1=Alle varer forblir vår eiendom
LawApplicationPart2=intil de er fullt ut betalt. LawApplicationPart2=intil de er fullt ut betalt.

View File

@@ -255,6 +255,7 @@ CivilityMTRE=-
##### Currencies ##### ##### Currencies #####
Currencyeuros=Euro Currencyeuros=Euro
CurrencyNOK=NOK
CurrencyAUD=Australske dollar CurrencyAUD=Australske dollar
CurrencyCAD=Kanadiske dollar CurrencyCAD=Kanadiske dollar
CurrencyCHF=Sveitsiske franc CurrencyCHF=Sveitsiske franc

View File

@@ -375,7 +375,7 @@ File=Fil
Files=Filer Files=Filer
NotAllowed=Ikke tillatt NotAllowed=Ikke tillatt
ReadPermissionNotAllowed=Lesetilgang ikke tillatt ReadPermissionNotAllowed=Lesetilgang ikke tillatt
AmountInCurrency=Beløp i %s valuta AmountInCurrency=Beløp i %s
Example=Eksempel Example=Eksempel
NoExample=Ingen eksempler NoExample=Ingen eksempler
FindBug=Rapporter en feil FindBug=Rapporter en feil

View File

@@ -369,7 +369,8 @@ class DoliDb
} }
else else
{ {
$ret = mysql_db_query($this->database_name, $query, $this->db); mysql_select_db($this->database_name);
$ret = mysql_query($query, $this->db);
} }
if (! preg_match("/^COMMIT/i",$query) && ! preg_match("/^ROLLBACK/i",$query)) if (! preg_match("/^COMMIT/i",$query) && ! preg_match("/^ROLLBACK/i",$query))