diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 460300e88bd..7f2a5bc7d3b 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -1282,7 +1282,7 @@ if ($id > 0 || ! empty($ref))
print '
'.$langs->trans('PriceUHT').' | ';
print ''.$langs->trans('Qty').' | ';
print ''.$langs->trans('ReductionShort').' | ';
- print ''.$langs->trans('AmountHT').' | ';
+ print ''.$langs->trans('TotalHTShort').' | ';
print ' | ';
print "\n";
}
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 18e07610339..255a98118e1 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -312,22 +312,22 @@ if ($_REQUEST['action'] == 'setremiseabsolue' && $user->rights->facture->creer)
*/
if ($_POST['action'] == 'addline' && $user->rights->commande->creer)
{
+ $commande = new Commande($db);
$result=0;
if (empty($_POST['idprod']) && $_POST["type"] < 0)
{
- $fac->error = $langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Type")) ;
+ $mesg = ''.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Type")).'
';
$result = -1 ;
}
- if (empty($_POST['idprod']) && empty($_POST["pu"]))
+ if (empty($_POST['idprod']) && ! isset($_POST["pu"])) // Field pu can be 0
{
- $fac->error = $langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("UnitPriceHT")) ;
+ $mesg = ''.$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("UnitPriceHT")).'
';
$result = -1 ;
}
if ($_POST['qty'] && (($_POST['pu'] != '' && ($_POST['np_desc'] || $_POST['dp_desc'])) || $_POST['idprod']))
{
- $commande = new Commande($db);
$ret=$commande->fetch($_POST['id']);
if ($ret < 0)
{
@@ -1531,7 +1531,7 @@ else
print ''.$langs->trans('PriceUHT').' | ';
print ''.$langs->trans('Qty').' | ';
print ''.$langs->trans('ReductionShort').' | ';
- print ''.$langs->trans('AmountHT').' | ';
+ print ''.$langs->trans('TotalHTShort').' | ';
print ' | ';
print "\n";
}
diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php
index 66b68802198..5ae94196edd 100644
--- a/htdocs/compta/commande/fiche.php
+++ b/htdocs/compta/commande/fiche.php
@@ -382,7 +382,7 @@ if ($id > 0 || ! empty($ref))
print ''.$langs->trans('PriceUHT').' | ';
print ''.$langs->trans('Qty').' | ';
print ''.$langs->trans('ReductionShort').' | ';
- print ''.$langs->trans('AmountHT').' | ';
+ print ''.$langs->trans('TotalHTShort').' | ';
print ' | ';
print "\n";
}
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 6fdae434fcd..12f890dfb44 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -2742,7 +2742,7 @@ else
print ''.$langs->trans('PriceUHT').' | ';
print ''.$langs->trans('Qty').' | ';
print ''.$langs->trans('ReductionShort').' | ';
- print ''.$langs->trans('TotalHT').' | ';
+ print ''.$langs->trans('TotalHTShort').' | ';
print ' | ';
print "\n";
}
diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php
index 2128ba4e3d9..3073c8b9be4 100644
--- a/htdocs/fourn/commande/fiche.php
+++ b/htdocs/fourn/commande/fiche.php
@@ -697,7 +697,7 @@ if ($id > 0 || ! empty($ref))
print ''.$langs->trans('PriceUHT').' | ';
print ''.$langs->trans('Qty').' | ';
print ''.$langs->trans('ReductionShort').' | ';
- print ''.$langs->trans('AmountHT').' | ';
+ print ''.$langs->trans('TotalHTShort').' | ';
print ' | ';
print "\n";
}
diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php
index 84ef42c347c..cb07cd08935 100644
--- a/htdocs/fourn/facture/fiche.php
+++ b/htdocs/fourn/facture/fiche.php
@@ -820,8 +820,8 @@ else
print ''.$langs->trans('PriceUHT').' | ';
print ''.$langs->trans('PriceUTTC').' | ';
print ''.$langs->trans('Qty').' | ';
- print ''.$langs->trans('TotalHT').' | ';
- print ''.$langs->trans('TotalTTC').' | ';
+ print ''.$langs->trans('TotalHTShort').' | ';
+ print ''.$langs->trans('TotalTTCShort').' | ';
print ' | ';
print ' | ';
print '';
@@ -976,8 +976,8 @@ else
print ''.$langs->trans('PriceUHT').' | ';
print ''.$langs->trans('PriceUTTC').' | ';
print ''.$langs->trans('Qty').' | ';
- print ''.$langs->trans('TotalHT').' | ';
- print ''.$langs->trans('TotalTTC').' | ';
+ print ' | ';
+ print ' | ';
print ' | ';
print ' | ';
print '';
diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php
index 7cc40b38fdc..b05154066c4 100644
--- a/htdocs/install/upgrade2.php
+++ b/htdocs/install/upgrade2.php
@@ -1377,13 +1377,15 @@ function migrate_price_commande($db,$langs,$conf)
$db->free($resql);
+ /*
$sql = "DELETE FROM ".MAIN_DB_PREFIX."commandedet";
- $sql.= " WHERE price = 0 and total_ttc = 0 and total_tva = 0 and total_ht = 0";
+ $sql.= " WHERE price = 0 and total_ttc = 0 and total_tva = 0 and total_ht = 0 AND remise_percent = 0";
$resql=$db->query($sql);
if (! $resql)
{
dol_print_error($db);
}
+ */
$db->commit();
}
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 88098d0b325..1077b3bcaac 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -236,6 +236,8 @@ PriceUTTC=U.P.
Amount=Amount
AmountInvoice=Invoice amount
AmountPayment=Payment amount
+AmountHTShort=Amount (net)
+AmountTTCShort=Amount (inc. tax)
AmountHT=Amount (net of tax)
AmountTTC=Amount (inc. tax)
AmountVAT=Amount VAT
@@ -248,6 +250,8 @@ PriceQtyMinTTC=Price quantity min. (inc. of tax)
Percentage=Pourcentage
Total=Total
SubTotal=Subtotal
+TotalHTShort=Total (net)
+TotalTTCShort=Total (inc. tax)
TotalHT=Total (net of tax)
TotalTTC=Total (inc. tax)
TotalTTCToYourCredit=Total (inc. tax) to your credit
@@ -467,7 +471,7 @@ AutomaticCode=Automatic code
NotManaged=Not managed
FeatureDisabled=Feature disabled
MoveBox=Move box %s
-Offered=Free
+Offered=Offered
NotEnoughPermissions=You don't have permission for this action
SessionName=Session name
Method=Method
diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang
index b19c0161c41..85b361e9585 100644
--- a/htdocs/langs/fr_FR/main.lang
+++ b/htdocs/langs/fr_FR/main.lang
@@ -236,6 +236,8 @@ PriceUTTC=P.U. TTC
Amount=Montant
AmountInvoice=Montant facture
AmountPayment=Montant paiement
+AmountHTShort=Montant HT
+AmountTTCShort=Montant TTC
AmountHT=Montant HT
AmountTTC=Montant TTC
AmountVAT=Montant TVA
@@ -248,6 +250,8 @@ PriceQtyMinTTC=Prix quantité min. TTC
Percentage=Pourcentage
Total=Total
SubTotal=Sous-total
+TotalHTShort=Total HT
+TotalTTCShort=Total TTC
TotalHT=Total HT
TotalTTC=Total TTC
TotalTTCToYourCredit=Total TTC à votre crédit
diff --git a/htdocs/langs/it_IT/main.lang b/htdocs/langs/it_IT/main.lang
index 5ae6a3518c9..e70bdf9e533 100644
--- a/htdocs/langs/it_IT/main.lang
+++ b/htdocs/langs/it_IT/main.lang
@@ -4,7 +4,7 @@ SeparatorDecimal =,
SeparatorThousand =
DatabaseConnection =Connessione al database
Error =Errore
-ErrorFieldRequired =Il campo '%s' è necessaria
+ErrorFieldRequired =Il campo '%s' � necessaria
ErrorFieldFormat =Il campo '%s' ha un valore cattivo
ErrorFileDoesNotExists =Il file %s non esiste
ErrorFailedToOpenFile =Impossibile aprire il file %s
@@ -13,34 +13,34 @@ ErrorCanNotReadDir =Impossibile leggere %s dir
ErrorConstantNotDefined =Parametro %s non definito
ErrorUnknown =Sconosciuta errore
ErrorSQL =Errore di SQL
-ErrorLogoFileNotFound =Logo file '%s' non è stato trovato
-ErrorGoToGlobalSetup =Vai alle impostazioni 'Società / Fondazione' per risolvere questo problema
+ErrorLogoFileNotFound =Logo file '%s' non � stato trovato
+ErrorGoToGlobalSetup =Vai alle impostazioni 'Societ� / Fondazione' per risolvere questo problema
ErrorGoToModuleSetup =Vai alle impostazioni del modulo per risolvere questo problema
ErrorFailedToSendMail =Impossibile inviare una mail (mittente %s, destinatario %s)
-ErrorAttachedFilesDisabled =Funzionalità di inserimento file è disattivata su questo server
-ErrorFileNotUploaded =File non è stato caricato. Controllare che la dimensione non superi il numero massimo consentito, che è lo spazio libero disponibile sul disco e che non vi è già un file con lo stesso nome in questa directory.
+ErrorAttachedFilesDisabled =Funzionalit� di inserimento file � disattivata su questo server
+ErrorFileNotUploaded =File non � stato caricato. Controllare che la dimensione non superi il numero massimo consentito, che � lo spazio libero disponibile sul disco e che non vi � gi� un file con lo stesso nome in questa directory.
ErrorInternalErrorDetected =Errore rilevato
ErrorNoRequestRan =Nessuna richiesta avviata
ErrorWrongHostParameter =Ospitante parametro sbagliato
-ErrorYourCountryIsNotDefined =Il vostro paese non è definita. Vai alla Home-Setup-e post Modifica nuovamente il modulo.
-ErrorRecordIsUsedByChild =Impossibile cancellare questo record. Questo record è utilizzato da almeno sui bambini record.
+ErrorYourCountryIsNotDefined =Il vostro paese non � definita. Vai alla Home-Setup-e post Modifica nuovamente il modulo.
+ErrorRecordIsUsedByChild =Impossibile cancellare questo record. Questo record � utilizzato da almeno sui bambini record.
ErrorWrongValue =Valore sbagliato
ErrorWrongValueForParameterX =Valore non corretto per il parametro %s
ErrorNoRequestInError =Nessuna richiesta in errore
-ErrorServiceUnavailableTryLater =Servizio non disponibile per il momento. Riprova più tardi.
+ErrorServiceUnavailableTryLater =Servizio non disponibile per il momento. Riprova pi� tardi.
ErrorDuplicateField =Valore duplicato in un unico campo
ErrorSomeErrorWereFoundRollbackIsDone =Alcuni errori sono stati trovati. Abbiamo rollback modifiche.
-ErrorConfigParameterNotDefined = Parametro %s non è definito all'interno di file di configurazione Dolibarr conf.php .
+ErrorConfigParameterNotDefined = Parametro %s non � definito all'interno di file di configurazione Dolibarr conf.php .
ErrorCantLoadUserFromDolibarrDatabase =Impossibile trovare l'utente %s nella Dolibarr database.
ErrorNoVATRateDefinedForSellerCountry =Errore, non definite le aliquote IVA per il paese '%s'.
ErrorFailedToSaveFile =Errore, file non salvato.
ErrorOnlyPngJpgSupported =Errore, solo i formati file di immagine Png e Jpg sono supportati.
ErrorImageFormatNotSupported =PHP non supporta funzioni per convertire le immagini di questo formato.
-LevelOfFeature =Livello di funzionalità
+LevelOfFeature =Livello di funzionalit�
DefinedAndHasThisValue =Definiti con il valore di
-IsNotDefined =Non è definito
+IsNotDefined =Non � definito
NotDefined =Non definito
-DolibarrInHttpAuthenticationSoPasswordUseless =Dolibarr modalità di autenticazione è configurato a %s nel file di configurazione conf.php .
Ciò significa che la password del database è esterno al Dolibarr, cambiando in modo tale settore può non avere effetti .
+DolibarrInHttpAuthenticationSoPasswordUseless =Dolibarr modalit� di autenticazione � configurato a %s nel file di configurazione conf.php .
Ci� significa che la password del database � esterno al Dolibarr, cambiando in modo tale settore pu� non avere effetti .
Administrator =Amministratore
Undefined =Indefinito
PasswordForgotten =Dimenticato la password?
@@ -49,7 +49,7 @@ HomeArea =Sezione home
LastConnexion =Ultima connessione
PreviousConnexion =Precedente connessione
ConnectedSince =In quanto collegato
-AuthenticationMode =Modalità di autenticazione
+AuthenticationMode =Modalit� di autenticazione
RequestedUrl =URL richiesto
DatabaseTypeManager =Tipo di database manager
RequestLastAccess =Richiesta di ultimo accesso a database
@@ -61,12 +61,12 @@ InformationToHelpDiagnose =Si tratta di informazioni che possono aiutare a
MoreInformation =Maggiori informazioni
NotePublic =Nota (pubblico)
NotePrivate =Nota (privati)
-PrecisionUnitIsLimitedToXDecimals =Dolibarr è stato di installazione di limitare la precisione dei prezzi unitari di %s decimali.
+PrecisionUnitIsLimitedToXDecimals =Dolibarr � stato di installazione di limitare la precisione dei prezzi unitari di %s decimali.
DoTest =Verifica
ToFilter =Filtro
WarningYouHaveAtLeastOneTaskLate =Attenzione, avete almeno un elemento che ha superato la tolleranza di ritardo.
-yes =sì
-Yes =Sì
+yes =s�
+Yes =S�
no =no
No =No
All =Tutto
@@ -218,18 +218,22 @@ PriceUTTC =P.U.(lordo)
Amount =Importo
AmountInvoice =Importo della fattura
AmountPayment =Importo del pagamento
+AmountHTShort =Importo (netto)
+AmountTTCShort =Importo (inc. IVA)
AmountHT =Importo (netto imposte)
AmountTTC =Importo (inclusa IVA)
AmountVAT =Importo IVA
AmountTotal =Importo totale
AmountAverage =Importo medio
PriceQtyHT =Prezzo per tale quantitativo tasse escluse
-PriceQtyMinHT =Prezzo quantità min. tasse escluse
+PriceQtyMinHT =Prezzo quantit� min. tasse escluse
PriceQtyTTC =Prezzo per tale quantitativo tasse incluse
-PriceQtyMinTTC =Prezzo quantità min. tasse incluse
+PriceQtyMinTTC =Prezzo quantit� min. tasse incluse
Percentage =Pourcentuale
Total =Totale
SubTotal =Totale parziale
+TotalHTShort =Totale imp.
+TotalTTCShort =Totale (inc. IVA)
TotalHT =Totale imponibile
TotalTTC =Totale (inclusa IVA)
TotalTTCToYourCredit =Totale (inclusa IVA) al tuo credito
@@ -258,7 +262,7 @@ ActionsToDo =Azioni da fare
ActionsDone =Azioni fatte
ActionsToDoShort =Da fare
ActionsDoneShort =Fatto
-CompanyFundation =Società / Fondazione
+CompanyFundation =Societ� / Fondazione
ContactsForCompany =Contatti per questa terza parte
ActionsOnCompany =Azioni su questo terzo
NActions =%s azioni
@@ -289,8 +293,8 @@ and =e
or =o
Other =Altro
Others =Altri
-Quantity =Quantità
-Qty =Qtà
+Quantity =Quantit�
+Qty =Qt�
ChangedBy =Cambiato da
ReCalculate =Ricalcolato
ResultOk =Successo
@@ -348,7 +352,7 @@ ReportDescription =Descrizione
Report =Report
Keyword =Chiave
Legend =Legenda
-FillTownFromZip =Inserire la città da zip
+FillTownFromZip =Inserire la citt� da zip
ShowLog =Visualizza log
File =File
ReadPermissionNotAllowed =Permesso di lettura non consentito
@@ -362,7 +366,7 @@ NbOfLines =Numero di linee
NbOfObjects =Numero di oggetti
NbOfReferers =Numero di riferimenti
Referers =Referers
-TotalQuantity =Quantità totale
+TotalQuantity =Quantit� totale
DateFromTo =Da %s a %s
DateFrom =Da %s
DateUntil =Fino a %s
@@ -377,15 +381,15 @@ BuildPDF =Crea PDF
RebuildPDF =Rigenera PDF
BuildDoc =Genera Doc
RebuildDoc =Rigenera Doc
-Entity =Entità
-Entities =Entità
+Entity =Entit�
+Entities =Entit�
EventLogs =Log
CustomerPreview =Anteprima cliente
SupplierPreview =Anteprima fornitore
-AccountancyPreview =Anteprima contabilità
+AccountancyPreview =Anteprima contabilit�
ShowCustomerPreview =Visualizza anteprima cliente
ShowSupplierPreview =Visualizza anteprima fornitore
-ShowAccountancyPreview =Visualizza anteprima contabilità
+ShowAccountancyPreview =Visualizza anteprima contabilit�
RefCustomer =Rif. cliente
Currency =Valuta
InfoAdmin =Informazioni per gli amministratori
@@ -394,23 +398,23 @@ Redo =Ripeti
ExpandAll =Espandi tutto
UndoExpandAll =Annulla espandere
Reason =Ragione
-FeatureNotYetSupported =Funzionalità non ancora supportata
+FeatureNotYetSupported =Funzionalit� non ancora supportata
CloseWindow =Chiudi finestra
Question =Domanda
Response =Risposta
-Priority =Priorità
+Priority =Priorit�
MailSentBy =Le email inviate da
TextUsedInTheMessageBody =Email corpo
SendAcknowledgementByMail =Invia conoscenza via e-mail
NoEMail =Nessuna email
Owner =Proprietario
DetectedVersion =Versione riconosciuta
-FollowingConstantsWillBeSubstituted =Le seguenti costanti sarà sostituto con corrispondente valori.
+FollowingConstantsWillBeSubstituted =Le seguenti costanti sar� sostituto con corrispondente valori.
Refresh =Aggiorna
BackToList =Torna alla lista
GoBack =Torna indietro
-CanBeModifiedIfOk =Può essere modificato se valido
-CanBeModifiedIfKo =Può essere modificato se non valido
+CanBeModifiedIfOk =Pu� essere modificato se valido
+CanBeModifiedIfKo =Pu� essere modificato se non valido
RecordModifiedSuccessfully =Record modificati con successo
AutomaticCode =Creazione automatica del codice
NotManaged =Non gestito
@@ -425,7 +429,7 @@ PartialWoman =Parziale
PartialMan =Parziale
TotalWoman =Totale
TotalMan =Totale
-YouCanChangeValuesForThisListFromDictionnarySetup =È possibile modificare i valori di questo elenco dal menu di impostazione - Dizionario
+YouCanChangeValuesForThisListFromDictionnarySetup =� possibile modificare i valori di questo elenco dal menu di impostazione - Dizionario
Color =Colore
Documents =Documenti
Documents2 =Documenti
@@ -439,10 +443,10 @@ CurrentUserLanguage =Linguaggio corrente
CurrentTheme =Tema attuale
# Week day
Monday =Lunedi
-Tuesday =Martedì
-Wednesday =Mercoledì
+Tuesday =Marted�
+Wednesday =Mercoled�
Thursday =Giovedi
-Friday =Venerdì
+Friday =Venerd�
Saturday =Sabato
Sunday =Domenica
ShortMonday =L
@@ -469,7 +473,7 @@ ConfirmClone=Scegli i dati che si desidera clonare:
ConfirmCloneEMailing=Sei sicuro di voler clonare questa email?
NoCloneOptionsSpecified=Non sono disponibili dati per clonare definito.
CopyOf=Copia del
-WelcomeString=We are %sCi sono% s, e si è connessi come utente% s
+WelcomeString=We are %sCi sono% s, e si � connessi come utente% s
Now=Adesso
ActionsRunningshort=Started
ActionRunningNotStarted=Non avviato
diff --git a/htdocs/langs/pt_PT/main.lang b/htdocs/langs/pt_PT/main.lang
index 0b5e7f4509c..cb3b8d3a9b9 100644
--- a/htdocs/langs/pt_PT/main.lang
+++ b/htdocs/langs/pt_PT/main.lang
@@ -233,6 +233,8 @@ PriceUTTC=PU Total
Amount=Montante
AmountInvoice=Montante Factura
AmountPayment=Montante Pagamento
+AmountHTShort=Montante base
+AmountTTCShort=Montante (IVA inc.)
AmountHT=Montante Base
AmountTTC=Montante
AmountVAT=Montante IVA
@@ -245,8 +247,10 @@ PriceQtyMinTTC=Preço quantidade min. total
Percentage=Percentagem
Total=Total
SubTotal=Subtotal
-TotalHT=Montante
-TotalTTC=Total
+TotalHTShort=Montante base
+TotalTTCShort=Total (IVA inc.)
+TotalHT=Total
+TotalTTC=Total (IVA inc.)
TotalTTCToYourCredit=Total a crédito
TotalVAT=Total do IVA
IncludedVAT=IVA incluido
diff --git a/mysql/tables/llx_commandedet.sql b/mysql/tables/llx_commandedet.sql
index 66ef345b35e..d5e0379bcae 100644
--- a/mysql/tables/llx_commandedet.sql
+++ b/mysql/tables/llx_commandedet.sql
@@ -1,6 +1,6 @@
-- ===================================================================
-- Copyright (C) 2003 Rodolphe Quiedeville
--- Copyright (C) 2006-2007 Laurent Destailleur
+-- Copyright (C) 2006-2009 Laurent Destailleur
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
@@ -25,16 +25,16 @@ create table llx_commandedet
fk_commande integer,
fk_product integer,
description text,
- tva_tx double(6,3), -- taux tva
- qty real, -- quantité
+ tva_tx double(6,3), -- vat rate
+ qty real, -- quantity
remise_percent real DEFAULT 0, -- pourcentage de remise
remise real DEFAULT 0, -- montant de la remise
fk_remise_except integer NULL, -- Lien vers table des remises fixes
price real, -- prix final
subprice double(24,8) DEFAULT 0, -- prix unitaire
- total_ht double(24,8) DEFAULT 0, -- Total HT de la ligne toute quantité et incluant remise ligne et globale
- total_tva double(24,8) DEFAULT 0, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale
- total_ttc double(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale
+ total_ht double(24,8) DEFAULT 0, -- Total HT de la ligne toute quantit� et incluant remise ligne et globale
+ total_tva double(24,8) DEFAULT 0, -- Total TVA de la ligne toute quantit� et incluant remise ligne et globale
+ total_ttc double(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantit� et incluant remise ligne et globale
product_type integer DEFAULT 0,
date_start datetime DEFAULT NULL, -- date debut si service
date_end datetime DEFAULT NULL, -- date fin si service