Merge remote-tracking branch 'origin/3.3' into develop
Conflicts: htdocs/commande/fiche.php htdocs/core/modules/facture/doc/pdf_crabe.modules.php
This commit is contained in:
commit
c86f3ef4b4
@ -118,7 +118,7 @@ class Facturation
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Define part of HT, VAT, TTC
|
// Define part of HT, VAT, TTC
|
||||||
$resultarray=calcul_price_total($this->qte,$this->prix(),$this->remisePercent(),$vat_rate,0,0,0,'HT',$product->type);
|
$resultarray=calcul_price_total($this->qte,$this->prix(),$this->remisePercent(),$vat_rate,0,0,0,'HT',$product->type,0);
|
||||||
|
|
||||||
// Calcul du total ht sans remise
|
// Calcul du total ht sans remise
|
||||||
$total_ht = $resultarray[0];
|
$total_ht = $resultarray[0];
|
||||||
|
|||||||
@ -730,6 +730,8 @@ else if ($action == 'addline' && $user->rights->commande->creer)
|
|||||||
|
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
|
$ret=$object->fetch($object->id); // Reload to get new records
|
||||||
|
|
||||||
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE))
|
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE))
|
||||||
{
|
{
|
||||||
// Define output language
|
// Define output language
|
||||||
@ -742,7 +744,6 @@ else if ($action == 'addline' && $user->rights->commande->creer)
|
|||||||
$outputlangs->setDefaultLang($newlang);
|
$outputlangs->setDefaultLang($newlang);
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret=$object->fetch($object->id); // Reload to get new records
|
|
||||||
commande_pdf_create($db, $object, $object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
|
commande_pdf_create($db, $object, $object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -622,7 +622,7 @@ class Translate
|
|||||||
$newdir=dol_osencode($dir);
|
$newdir=dol_osencode($dir);
|
||||||
|
|
||||||
// Check if directory exists
|
// Check if directory exists
|
||||||
if (! dol_is_dir($dir)) continue;
|
if (! is_dir($newdir)) continue; // We must not use dol_is_dir here, function may not be loaded
|
||||||
|
|
||||||
$fonc='numberwords';
|
$fonc='numberwords';
|
||||||
if (file_exists($newdir.'/functions_'.$fonc.'.lib.php'))
|
if (file_exists($newdir.'/functions_'.$fonc.'.lib.php'))
|
||||||
|
|||||||
@ -871,7 +871,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$tvakey=str_replace('*','',$tvakey);
|
$tvakey=str_replace('*','',$tvakey);
|
||||||
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
|
$tvacompl = " (".$outputlangs->transnoentities("NonPercuRecuperable").")";
|
||||||
}
|
}
|
||||||
|
|
||||||
$totalvat = $outputlangs->transcountrynoentities("TotalLT1",$mysoc->country_code).' ';
|
$totalvat = $outputlangs->transcountrynoentities("TotalLT1",$mysoc->country_code).' ';
|
||||||
$totalvat.=vatrate(abs($tvakey),1).$tvacompl;
|
$totalvat.=vatrate(abs($tvakey),1).$tvacompl;
|
||||||
$pdf->MultiCell($col2x-$col1x, $tab2_hl, $totalvat, 0, 'L', 1);
|
$pdf->MultiCell($col2x-$col1x, $tab2_hl, $totalvat, 0, 'L', 1);
|
||||||
|
|||||||
@ -301,6 +301,8 @@ TotalHT=Total (net of tax)
|
|||||||
TotalTTC=Total (inc. tax)
|
TotalTTC=Total (inc. tax)
|
||||||
TotalTTCToYourCredit=Total (inc. tax) to your credit
|
TotalTTCToYourCredit=Total (inc. tax) to your credit
|
||||||
TotalVAT=Total tax
|
TotalVAT=Total tax
|
||||||
|
TotalLT1=Total tax 2
|
||||||
|
TotalLT2=Total tax 3
|
||||||
TotalLT1ES=Total RE
|
TotalLT1ES=Total RE
|
||||||
TotalLT2ES=Total IRPF
|
TotalLT2ES=Total IRPF
|
||||||
IncludedVAT=Included tax
|
IncludedVAT=Included tax
|
||||||
|
|||||||
@ -303,6 +303,8 @@ TotalHT=Total HT
|
|||||||
TotalTTC=Total TTC
|
TotalTTC=Total TTC
|
||||||
TotalTTCToYourCredit=Total TTC à votre crédit
|
TotalTTCToYourCredit=Total TTC à votre crédit
|
||||||
TotalVAT=Total TVA
|
TotalVAT=Total TVA
|
||||||
|
TotalLT1=Total Taxe 2
|
||||||
|
TotalLT2=Total Taxe 3
|
||||||
TotalLT1ES=Total RE
|
TotalLT1ES=Total RE
|
||||||
TotalLT2ES=Total IRPF
|
TotalLT2ES=Total IRPF
|
||||||
IncludedVAT=Dont TVA
|
IncludedVAT=Dont TVA
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user