Trad: Utilisation du bon terme "Réduction" au lieu de "Remise".
En effet une réduc en pourcentage sur une ligne facture s'appelle de manière générique "Réduction" et non "Remise" car "Remise" est un cas particulier de "Réduction" au niveau ligne facture. Réduction = Remise ou Rabais ou Ristourne = % sur ligne facture.
This commit is contained in:
parent
43329f7ec5
commit
f7f1c89792
@ -305,7 +305,11 @@ if ($_GET["action"] == 'create')
|
|||||||
$lib=$langs->trans("ProductsAndServices");
|
$lib=$langs->trans("ProductsAndServices");
|
||||||
|
|
||||||
print '<table class="border">';
|
print '<table class="border">';
|
||||||
print '<tr><td>'.$lib.'</td><td>'.$langs->trans("Qty").'</td><td>'.$langs->trans("Discount").'</td></tr>';
|
print '<tr>';
|
||||||
|
print '<td>'.$lib.'</td>';
|
||||||
|
print '<td>'.$langs->trans("Qty").'</td>';
|
||||||
|
print '<td>'.$langs->trans("ReductionShort").'</td>';
|
||||||
|
print '</tr>';
|
||||||
for ($i = 1 ; $i <= $conf->global->PROPALE_NEW_FORM_NB_PRODUCT ; $i++)
|
for ($i = 1 ; $i <= $conf->global->PROPALE_NEW_FORM_NB_PRODUCT ; $i++)
|
||||||
{
|
{
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
|
|||||||
@ -118,7 +118,7 @@ if ($_socid > 0)
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Liste de l'historique des remises
|
* Liste de l'historique des avoirs
|
||||||
*/
|
*/
|
||||||
$sql = "SELECT rc.rowid,rc.remise_client,".$db->pdate("rc.datec")." as dc,";
|
$sql = "SELECT rc.rowid,rc.remise_client,".$db->pdate("rc.datec")." as dc,";
|
||||||
$sql.= " u.rowid as user_id, u.code";
|
$sql.= " u.rowid as user_id, u.code";
|
||||||
@ -134,7 +134,7 @@ if ($_socid > 0)
|
|||||||
$tag = !$tag;
|
$tag = !$tag;
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Date").'</td>';
|
print '<td>'.$langs->trans("Date").'</td>';
|
||||||
print '<td>'.$langs->trans("Discount").'</td>';
|
print '<td>'.$langs->trans("CreditNote").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("User").'</td>';
|
print '<td align="center">'.$langs->trans("User").'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
$i = 0 ;
|
$i = 0 ;
|
||||||
|
|||||||
@ -904,7 +904,7 @@ if ($_GET['action'] == 'create')
|
|||||||
|
|
||||||
// Zone de choix des produits prédéfinis à la création
|
// Zone de choix des produits prédéfinis à la création
|
||||||
print '<table class="noborder">';
|
print '<table class="noborder">';
|
||||||
print '<tr><td>'.$langs->trans('ProductsAndServices').'</td><td>'.$langs->trans('Qty').'</td><td>'.$langs->trans('Discount').'</td><td> </td>';
|
print '<tr><td>'.$langs->trans('ProductsAndServices').'</td><td>'.$langs->trans('Qty').'</td><td>'.$langs->trans('Reduction').'</td><td> </td>';
|
||||||
if ($conf->service->enabled)
|
if ($conf->service->enabled)
|
||||||
{
|
{
|
||||||
print '<td>'.$langs->trans('ServiceLimitedDuration').'</td></tr>';
|
print '<td>'.$langs->trans('ServiceLimitedDuration').'</td></tr>';
|
||||||
@ -989,7 +989,7 @@ if ($_GET['action'] == 'create')
|
|||||||
print '<td align="right">'.$langs->trans('VAT').'</td>';
|
print '<td align="right">'.$langs->trans('VAT').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('PriceUHT').'</td>';
|
print '<td align="right">'.$langs->trans('PriceUHT').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('Qty').'</td>';
|
print '<td align="right">'.$langs->trans('Qty').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('Discount').'</td></tr>';
|
print '<td align="right">'.$langs->trans('Reduction').'</td></tr>';
|
||||||
|
|
||||||
// Lignes de propal produits prédéfinis
|
// Lignes de propal produits prédéfinis
|
||||||
$sql = 'SELECT pt.rowid, p.label as product, p.ref, pt.tva_tx, pt.price, pt.qty, p.rowid as prodid, pt.remise_percent, pt.description';
|
$sql = 'SELECT pt.rowid, p.label as product, p.ref, pt.tva_tx, pt.price, pt.qty, p.rowid as prodid, pt.remise_percent, pt.description';
|
||||||
@ -1069,7 +1069,7 @@ if ($_GET['action'] == 'create')
|
|||||||
print '<td align="right">'.$langs->trans('VAT').'</td>';
|
print '<td align="right">'.$langs->trans('VAT').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('PriceUHT').'</td>';
|
print '<td align="right">'.$langs->trans('PriceUHT').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('Qty').'</td>';
|
print '<td align="right">'.$langs->trans('Qty').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('Discount').'</td></tr>';
|
print '<td align="right">'.$langs->trans('Reduction').'</td></tr>';
|
||||||
|
|
||||||
$sql = 'SELECT pt.rowid, pt.subprice, pt.tva_tx, pt.qty, pt.remise_percent, pt.description,';
|
$sql = 'SELECT pt.rowid, pt.subprice, pt.tva_tx, pt.qty, pt.remise_percent, pt.description,';
|
||||||
$sql.= ' p.label as product, p.ref, p.rowid as prodid';
|
$sql.= ' p.label as product, p.ref, p.rowid as prodid';
|
||||||
@ -1152,7 +1152,7 @@ if ($_GET['action'] == 'create')
|
|||||||
print '<td align="right">'.$langs->trans('VAT').'</td>';
|
print '<td align="right">'.$langs->trans('VAT').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('PriceUHT').'</td>';
|
print '<td align="right">'.$langs->trans('PriceUHT').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('Qty').'</td>';
|
print '<td align="right">'.$langs->trans('Qty').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('Discount').'</td></tr>';
|
print '<td align="right">'.$langs->trans('Reduction').'</td></tr>';
|
||||||
|
|
||||||
// Lignes de contrat produits prédéfinis
|
// Lignes de contrat produits prédéfinis
|
||||||
$sql = 'SELECT pt.rowid, pt.subprice, pt.tva_tx, pt.qty, pt.remise_percent, pt.description,';
|
$sql = 'SELECT pt.rowid, pt.subprice, pt.tva_tx, pt.qty, pt.remise_percent, pt.description,';
|
||||||
@ -1554,7 +1554,7 @@ else
|
|||||||
print '<td align="right" width="50">'.$langs->trans('VAT').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('VAT').'</td>';
|
||||||
print '<td align="right" width="80">'.$langs->trans('PriceUHT').'</td>';
|
print '<td align="right" width="80">'.$langs->trans('PriceUHT').'</td>';
|
||||||
print '<td align="right" width="50">'.$langs->trans('Qty').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('Qty').'</td>';
|
||||||
print '<td align="right" width="50">'.$langs->trans('Discount').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('Reduction').'</td>';
|
||||||
print '<td align="right" width="50">'.$langs->trans('AmountHT').'</td>';
|
print '<td align="right" width="50">'.$langs->trans('AmountHT').'</td>';
|
||||||
print '<td width="16"> </td>';
|
print '<td width="16"> </td>';
|
||||||
print '<td width="16"> </td>';
|
print '<td width="16"> </td>';
|
||||||
@ -1816,7 +1816,7 @@ else
|
|||||||
print '<td align="right">'.$langs->trans('VAT').'</td>';
|
print '<td align="right">'.$langs->trans('VAT').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('PriceUHT').'</td>';
|
print '<td align="right">'.$langs->trans('PriceUHT').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('Qty').'</td>';
|
print '<td align="right">'.$langs->trans('Qty').'</td>';
|
||||||
print '<td align="right">'.$langs->trans('Discount').'</td>';
|
print '<td align="right">'.$langs->trans('Reduction').'</td>';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
|
|||||||
@ -178,7 +178,7 @@ if ($_GET["action"] == 'create')
|
|||||||
print '<td width="54%">'.$langs->trans("Description").'</td>';
|
print '<td width="54%">'.$langs->trans("Description").'</td>';
|
||||||
print '<td width="8%" align="center">'.$langs->trans("VAT").'</td>';
|
print '<td width="8%" align="center">'.$langs->trans("VAT").'</td>';
|
||||||
print '<td width="8%" align="center">'.$langs->trans("Qty").'</td>';
|
print '<td width="8%" align="center">'.$langs->trans("Qty").'</td>';
|
||||||
print '<td width="8%" align="right">'.$langs->trans("Discount").'</td>';
|
print '<td width="8%" align="right">'.$langs->trans("ReductionShort").'</td>';
|
||||||
print '<td width="12%" align="right">'.$langs->trans("PriceU").'</td>';
|
print '<td width="12%" align="right">'.$langs->trans("PriceU").'</td>';
|
||||||
print '<td width="12%" align="right">N.P.</td>';
|
print '<td width="12%" align="right">N.P.</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -336,7 +336,9 @@ else
|
|||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Ref").'</td><td>'.$langs->trans("Product").'</td>';
|
print '<tr class="liste_titre"><td>'.$langs->trans("Ref").'</td><td>'.$langs->trans("Product").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Price").'</td><td align="center">'.$langs->trans("Discount").'</td><td align="center">'.$langs->trans("Qty").'</td></tr>';
|
print '<td align="right">'.$langs->trans("Price").'</td>';
|
||||||
|
print '<td align="center">'.$langs->trans("ReductionShort").'</td>';
|
||||||
|
print '<td align="center">'.$langs->trans("Qty").'</td></tr>';
|
||||||
|
|
||||||
$num = sizeof($fac->lignes);
|
$num = sizeof($fac->lignes);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|||||||
@ -424,7 +424,9 @@ if ($_GET["action"] == 'create')
|
|||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Ref").'</td><td>'.$langs->trans("Product").'</td>';
|
print '<tr class="liste_titre"><td>'.$langs->trans("Ref").'</td><td>'.$langs->trans("Product").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Price").'</td><td align="center">'.$langs->trans("Discount").'</td><td align="center">'.$langs->trans("Qty").'</td></tr>';
|
print '<td align="right">'.$langs->trans("Price").'</td>';
|
||||||
|
print '<td align="center">'.$langs->trans("ReductionShort").'</td>';
|
||||||
|
print '<td align="center">'.$langs->trans("Qty").'</td></tr>';
|
||||||
|
|
||||||
$sql = "SELECT pt.rowid, p.label as product, p.ref, pt.price, pt.qty, p.rowid as prodid, pt.remise_percent";
|
$sql = "SELECT pt.rowid, p.label as product, p.ref, pt.price, pt.qty, p.rowid as prodid, pt.remise_percent";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."propaldet as pt, ".MAIN_DB_PREFIX."product as p WHERE pt.fk_product = p.rowid AND pt.fk_propal = $propalid";
|
$sql .= " FROM ".MAIN_DB_PREFIX."propaldet as pt, ".MAIN_DB_PREFIX."product as p WHERE pt.fk_product = p.rowid AND pt.fk_propal = $propalid";
|
||||||
@ -647,7 +649,7 @@ else
|
|||||||
print '<td width="50" align="center">'.$langs->trans("VAT").'</td>';
|
print '<td width="50" align="center">'.$langs->trans("VAT").'</td>';
|
||||||
print '<td width="50" align="right">'.$langs->trans("PriceUHT").'</td>';
|
print '<td width="50" align="right">'.$langs->trans("PriceUHT").'</td>';
|
||||||
print '<td width="30" align="center">'.$langs->trans("Qty").'</td>';
|
print '<td width="30" align="center">'.$langs->trans("Qty").'</td>';
|
||||||
print '<td width="50" align="right">'.$langs->trans("Discount").'</td>';
|
print '<td width="50" align="right">'.$langs->trans("ReductionShort").'</td>';
|
||||||
print '<td width="30"> </td>';
|
print '<td width="30"> </td>';
|
||||||
print '<td width="30" align="center">'.$langs->trans("Status").'</td>';
|
print '<td width="30" align="center">'.$langs->trans("Status").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -841,7 +843,7 @@ else
|
|||||||
print '<td align="center">'.$langs->trans("VAT").'</td>';
|
print '<td align="center">'.$langs->trans("VAT").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("PriceUHT").'</td>';
|
print '<td align="right">'.$langs->trans("PriceUHT").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("Qty").'</td>';
|
print '<td align="center">'.$langs->trans("Qty").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Discount").'</td>';
|
print '<td align="right">'.$langs->trans("ReductionShort").'</td>';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|||||||
@ -236,7 +236,7 @@ if ($id > 0)
|
|||||||
print '<td width="50" align="center">'.$langs->trans("VAT").'</td>';
|
print '<td width="50" align="center">'.$langs->trans("VAT").'</td>';
|
||||||
print '<td width="50" align="right">'.$langs->trans("PriceUHT").'</td>';
|
print '<td width="50" align="right">'.$langs->trans("PriceUHT").'</td>';
|
||||||
print '<td width="30" align="center">'.$langs->trans("Qty").'</td>';
|
print '<td width="30" align="center">'.$langs->trans("Qty").'</td>';
|
||||||
print '<td width="50" align="right">'.$langs->trans("Discount").'</td>';
|
print '<td width="50" align="right">'.$langs->trans("ReductionShort").'</td>';
|
||||||
print '<td width="16"> </td>';
|
print '<td width="16"> </td>';
|
||||||
print '<td width="30" align="center">'.$langs->trans("Status").'</td>';
|
print '<td width="30" align="center">'.$langs->trans("Status").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|||||||
@ -1057,7 +1057,7 @@ class Facture
|
|||||||
*/
|
*/
|
||||||
function updateline($rowid, $desc, $pu, $qty, $remise_percent=0, $datestart, $dateend, $tva_tx)
|
function updateline($rowid, $desc, $pu, $qty, $remise_percent=0, $datestart, $dateend, $tva_tx)
|
||||||
{
|
{
|
||||||
dolibarr_syslog('Facture::UpdateLine');
|
dolibarr_syslog("Facture::UpdateLine $rowid, $desc, $pu, $qty, $remise_percent, $datestart, $dateend, $tva_tx");
|
||||||
|
|
||||||
if ($this->brouillon)
|
if ($this->brouillon)
|
||||||
{
|
{
|
||||||
@ -2206,13 +2206,19 @@ class FactureLigne
|
|||||||
{
|
{
|
||||||
// From llx_facturedet
|
// From llx_facturedet
|
||||||
var $desc;
|
var $desc;
|
||||||
var $qty;
|
|
||||||
var $price; // Prix unitaire HT apres remise % de ligne
|
var $qty; // Quantité (exemple 2)
|
||||||
//var $price_ttc;
|
var $subprice; // P.U. HT (exemple 100)
|
||||||
var $subprice; // Prix unitaire HT
|
var $remise_percent; // % de la remise ligne (exemple 20%)
|
||||||
var $tva_taux; // Taux tva produit/service
|
var $price; // P.U. HT apres remise % de ligne (exemple 80)
|
||||||
var $remise_percent; // % de la remise
|
var $tva_taux; // Taux tva produit/service (exemple 19.6)
|
||||||
var $remise; // Montant unitaire calculé de la remise %
|
var $remise; // Montant calculé de la remise % sur PU HT (exemple 20)
|
||||||
|
// subprice = price + remise
|
||||||
|
|
||||||
|
var $total_ht; // Total HT de la ligne toute quantité et incluant
|
||||||
|
// la remise ligne et remise globale.
|
||||||
|
var $total_ttc;
|
||||||
|
|
||||||
var $produit_id;
|
var $produit_id;
|
||||||
var $date_start;
|
var $date_start;
|
||||||
var $date_end;
|
var $date_end;
|
||||||
|
|||||||
@ -418,7 +418,7 @@ if ($_GET["id"] > 0)
|
|||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("VAT").'</td>';
|
print '<td align="center">'.$langs->trans("VAT").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("Qty").'</td>';
|
print '<td align="center">'.$langs->trans("Qty").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Discount").'</td>';
|
print '<td align="right">'.$langs->trans("ReductionShort").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("PriceU").'</td>';
|
print '<td align="right">'.$langs->trans("PriceU").'</td>';
|
||||||
print '<td> </td><td width="10%"> </td>';
|
print '<td> </td><td width="10%"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@ -497,7 +497,7 @@ if ($_GET["id"] > 0)
|
|||||||
print '<td colspan="2">'.$langs->trans("Description").'</td>';
|
print '<td colspan="2">'.$langs->trans("Description").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("VAT").'</td>';
|
print '<td align="center">'.$langs->trans("VAT").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("Qty").'</td>';
|
print '<td align="center">'.$langs->trans("Qty").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Discount").'</td>';
|
print '<td align="right">'.$langs->trans("ReductionShort").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("PriceU").'</td>';
|
print '<td align="right">'.$langs->trans("PriceU").'</td>';
|
||||||
print '<td> </td><td> </td>'."</tr>\n";
|
print '<td> </td><td> </td>'."</tr>\n";
|
||||||
|
|
||||||
|
|||||||
@ -607,7 +607,7 @@ class pdf_muscadet extends ModelePDFCommandesSuppliers
|
|||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
{
|
{
|
||||||
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
||||||
$pdf->MultiCell(16,2, $langs->trans("Discount"),'','C');
|
$pdf->MultiCell(16,2, $langs->trans("ReductionShort"),'','C');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
|
|||||||
@ -201,7 +201,7 @@ class pdf_edison extends ModelePDFCommandes
|
|||||||
$pdf->MultiCell(42, $tab2_lh, $langs->trans("TotalHT"), 0, 'R', 0);
|
$pdf->MultiCell(42, $tab2_lh, $langs->trans("TotalHT"), 0, 'R', 0);
|
||||||
|
|
||||||
$pdf->SetXY (132, $tab2_top + $tab2_lh);
|
$pdf->SetXY (132, $tab2_top + $tab2_lh);
|
||||||
$pdf->MultiCell(42, $tab2_lh, $langs->trans("Discount"), 0, 'R', 0);
|
$pdf->MultiCell(42, $tab2_lh, $langs->trans("Reduction"), 0, 'R', 0);
|
||||||
|
|
||||||
$pdf->SetXY (132, $tab2_top + $tab2_lh*2);
|
$pdf->SetXY (132, $tab2_top + $tab2_lh*2);
|
||||||
$pdf->MultiCell(42, $tab2_lh, "Total HT après remise", 0, 'R', 0);
|
$pdf->MultiCell(42, $tab2_lh, "Total HT après remise", 0, 'R', 0);
|
||||||
|
|||||||
@ -605,7 +605,7 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
{
|
{
|
||||||
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
||||||
$pdf->MultiCell(16,2, $langs->trans("Discount"),'','C');
|
$pdf->MultiCell(16,2, $langs->trans("ReductionShort"),'','C');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
|
|||||||
@ -725,7 +725,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
{
|
{
|
||||||
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
||||||
$pdf->MultiCell(16,2, $langs->trans("Discount"),'','C');
|
$pdf->MultiCell(16,2, $langs->trans("ReductionShort"),'','C');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
|
|||||||
@ -644,7 +644,7 @@ class pdf_propale_azur extends ModelePDFPropales
|
|||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
{
|
{
|
||||||
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
||||||
$pdf->MultiCell(16,2, $langs->trans("Discount"),'','C');
|
$pdf->MultiCell(16,2, $langs->trans("ReductionShort"),'','C');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
|
|||||||
@ -266,7 +266,7 @@ class pdf_propale_vert extends ModelePDFPropales
|
|||||||
|
|
||||||
$pdf->line(166, $tab_top, 166, $tab_top + $tab_height);
|
$pdf->line(166, $tab_top, 166, $tab_top + $tab_height);
|
||||||
$pdf->SetXY(166, $yt);
|
$pdf->SetXY(166, $yt);
|
||||||
$pdf->MultiCell(14,5,$langs->trans("Discount"),0,'C');
|
$pdf->MultiCell(14,5,$langs->trans("ReductionShort"),0,'C');
|
||||||
|
|
||||||
$pdf->line(180, $tab_top, 180, $tab_top + $tab_height);
|
$pdf->line(180, $tab_top, 180, $tab_top + $tab_height);
|
||||||
$pdf->SetXY(180, $yt);
|
$pdf->SetXY(180, $yt);
|
||||||
|
|||||||
@ -77,7 +77,6 @@ ConfirmValidateBill=Are you sure you want to validate this invoice with referenc
|
|||||||
ConfirmClassifyPayedBill=Are you sure you want to change invoice %s to status payed ?
|
ConfirmClassifyPayedBill=Are you sure you want to change invoice %s to status payed ?
|
||||||
ConfirmCancelBill=Are you sure you want to cancel invoice %s ?
|
ConfirmCancelBill=Are you sure you want to cancel invoice %s ?
|
||||||
ValidateBill=Validate invoice
|
ValidateBill=Validate invoice
|
||||||
GlobalDiscount=Global discount
|
|
||||||
NumberOfBills=Nb of invoices
|
NumberOfBills=Nb of invoices
|
||||||
NumberOfBillsByMonth=Nb of invoices by month
|
NumberOfBillsByMonth=Nb of invoices by month
|
||||||
ShowBill=Show invoice
|
ShowBill=Show invoice
|
||||||
@ -121,6 +120,9 @@ ChangeIntoRepeatableInvoice=Change into repeatable
|
|||||||
CreateRepeatableInvoice=Create repeatable invoice
|
CreateRepeatableInvoice=Create repeatable invoice
|
||||||
ExportDataset_invoice_1=Customer invoices list and invoices' lines
|
ExportDataset_invoice_1=Customer invoices list and invoices' lines
|
||||||
ProformaBill=Proforma Bill:
|
ProformaBill=Proforma Bill:
|
||||||
|
Reduction=Reduction
|
||||||
|
ReductionShort=Reduc
|
||||||
|
GlobalDiscount=Global discount
|
||||||
CreditNote=Credit note
|
CreditNote=Credit note
|
||||||
CreditNotes=Credit notes
|
CreditNotes=Credit notes
|
||||||
NewGlobalDiscount=New discount
|
NewGlobalDiscount=New discount
|
||||||
|
|||||||
@ -77,7 +77,6 @@ ConfirmValidateBill=
|
|||||||
ConfirmClassifyPayedBill=Êtes-vous sûr de vouloir classer la facture %s comme payée ?
|
ConfirmClassifyPayedBill=Êtes-vous sûr de vouloir classer la facture %s comme payée ?
|
||||||
ConfirmCancelBill=Êtes-vous sûr de vouloir annuler la facture %s ?
|
ConfirmCancelBill=Êtes-vous sûr de vouloir annuler la facture %s ?
|
||||||
ValidateBill=Valider facture
|
ValidateBill=Valider facture
|
||||||
GlobalDiscount=Remise globale
|
|
||||||
NumberOfBills=Nb de factures
|
NumberOfBills=Nb de factures
|
||||||
NumberOfBillsByMonth=Nb de factures par mois
|
NumberOfBillsByMonth=Nb de factures par mois
|
||||||
ShowBill=Afficher facture
|
ShowBill=Afficher facture
|
||||||
@ -121,6 +120,9 @@ ChangeIntoRepeatableInvoice=Modifier en r
|
|||||||
CreateRepeatableInvoice=Créer facture récurrente
|
CreateRepeatableInvoice=Créer facture récurrente
|
||||||
ExportDataset_invoice_1=Factures clients et lignes de facture
|
ExportDataset_invoice_1=Factures clients et lignes de facture
|
||||||
ProformaBill=Facture Proforma :
|
ProformaBill=Facture Proforma :
|
||||||
|
Reduction=Réduction
|
||||||
|
ReductionShort=Réduc.
|
||||||
|
GlobalDiscount=Remise globale
|
||||||
CreditNote=Avoir
|
CreditNote=Avoir
|
||||||
CreditNotes=Avoirs
|
CreditNotes=Avoirs
|
||||||
NewGlobalDiscount=Nouvel avoir
|
NewGlobalDiscount=Nouvel avoir
|
||||||
|
|||||||
@ -605,7 +605,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
{
|
{
|
||||||
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
$pdf->SetXY ($this->posxdiscount-1, $tab_top+2);
|
||||||
$pdf->MultiCell(16,2, $langs->trans("Discount"),'','C');
|
$pdf->MultiCell(16,2, $langs->trans("ReductionShort"),'','C');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->atleastonediscount)
|
if ($this->atleastonediscount)
|
||||||
|
|||||||
@ -812,7 +812,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->status)
|
|||||||
print "<td><a href=\"../comm/fiche.php?socid=$objp->idp\">".dolibarr_trunc($objp->nom,18)."</a></td>\n";
|
print "<td><a href=\"../comm/fiche.php?socid=$objp->idp\">".dolibarr_trunc($objp->nom,18)."</a></td>\n";
|
||||||
print "<td nowrap=\"nowrap\">".dolibarr_print_date($objp->dp,"%d %b")."</td>\n";
|
print "<td nowrap=\"nowrap\">".dolibarr_print_date($objp->dp,"%d %b")."</td>\n";
|
||||||
print '<td><input type="hidden" name="propalid" value="'.$objp->propalid.'">';
|
print '<td><input type="hidden" name="propalid" value="'.$objp->propalid.'">';
|
||||||
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("Discount");
|
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("ReductionShort");
|
||||||
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
||||||
print " ".$product->stock_proposition;
|
print " ".$product->stock_proposition;
|
||||||
print '</td><td align="right">';
|
print '</td><td align="right">';
|
||||||
@ -851,7 +851,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->status)
|
|||||||
$html->select_array("propalid", $otherprop);
|
$html->select_array("propalid", $otherprop);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td nowrap="nowrap" colspan="2">'.$langs->trans("Qty");
|
print '<tr '.$bc[$var].'><td nowrap="nowrap" colspan="2">'.$langs->trans("Qty");
|
||||||
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("Discount");
|
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("ReductionShort");
|
||||||
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
||||||
print '</td><td align="right">';
|
print '</td><td align="right">';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Add").'">';
|
print '<input type="submit" class="button" value="'.$langs->trans("Add").'">';
|
||||||
@ -920,7 +920,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->status)
|
|||||||
print "<td><a href=\"../comm/fiche.php?socid=$objc->idp\">".dolibarr_trunc($objc->nom,18)."</a></td>\n";
|
print "<td><a href=\"../comm/fiche.php?socid=$objc->idp\">".dolibarr_trunc($objc->nom,18)."</a></td>\n";
|
||||||
print "<td nowrap=\"nowrap\">".dolibarr_print_date($objc->dc,"%d %b")."</td>\n";
|
print "<td nowrap=\"nowrap\">".dolibarr_print_date($objc->dc,"%d %b")."</td>\n";
|
||||||
print '<td><input type="hidden" name="commandeid" value="'.$objc->commandeid.'">';
|
print '<td><input type="hidden" name="commandeid" value="'.$objc->commandeid.'">';
|
||||||
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("Discount");
|
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("ReductionShort");
|
||||||
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
||||||
print " ".$product->stock_proposition;
|
print " ".$product->stock_proposition;
|
||||||
print '</td><td align="right">';
|
print '</td><td align="right">';
|
||||||
@ -959,7 +959,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->status)
|
|||||||
$html->select_array("commandeid", $othercom);
|
$html->select_array("commandeid", $othercom);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td colspan="2">'.$langs->trans("Qty");
|
print '<tr '.$bc[$var].'><td colspan="2">'.$langs->trans("Qty");
|
||||||
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("Discount");
|
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("ReductionShort");
|
||||||
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
||||||
print '</td><td align="right">';
|
print '</td><td align="right">';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Add").'">';
|
print '<input type="submit" class="button" value="'.$langs->trans("Add").'">';
|
||||||
@ -1024,7 +1024,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->status)
|
|||||||
print "<td><a href=\"../comm/fiche.php?socid=$objp->idp\">".dolibarr_trunc($objp->nom,18)."</a></td>\n";
|
print "<td><a href=\"../comm/fiche.php?socid=$objp->idp\">".dolibarr_trunc($objp->nom,18)."</a></td>\n";
|
||||||
print "<td nowrap=\"nowrap\">".dolibarr_print_date($objp->df,"%d %b")."</td>\n";
|
print "<td nowrap=\"nowrap\">".dolibarr_print_date($objp->df,"%d %b")."</td>\n";
|
||||||
print '<td><input type="hidden" name="factureid" value="'.$objp->factureid.'">';
|
print '<td><input type="hidden" name="factureid" value="'.$objp->factureid.'">';
|
||||||
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("Discount");
|
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("ReductionShort");
|
||||||
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
||||||
print '</td><td align="right">';
|
print '</td><td align="right">';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Add").'">';
|
print '<input type="submit" class="button" value="'.$langs->trans("Add").'">';
|
||||||
@ -1082,7 +1082,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->status)
|
|||||||
print '<input type="hidden" name="action" value="addinfacture">';
|
print '<input type="hidden" name="action" value="addinfacture">';
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print '<td><input type="hidden" name="factureid" value="'.$objp->factureid.'">';
|
print '<td><input type="hidden" name="factureid" value="'.$objp->factureid.'">';
|
||||||
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("Discount");
|
print '<input type="text" class="flat" name="qty" size="1" value="1"></td><td nowrap>'.$langs->trans("ReductionShort");
|
||||||
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
print '<input type="text" class="flat" name="remise_percent" size="1" value="0">%';
|
||||||
print '</td><td align="right">';
|
print '</td><td align="right">';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Add").'">';
|
print '<input type="submit" class="button" value="'.$langs->trans("Add").'">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user