Change function to camel case

This commit is contained in:
John Botella 2019-06-24 12:22:33 +02:00
parent a83e7f3665
commit 9c414a7a57
2 changed files with 2 additions and 2 deletions

View File

@ -2217,7 +2217,7 @@ function pdf_getSizeForImage($realpath)
* @return string Return total of line excl tax
*/
function pdf_getLineTotalDiscountAmount($object, $i, $outputlangs, $hidedetails=0)
function pdfGetLineTotalDiscountAmount($object, $i, $outputlangs, $hidedetails=0)
{
global $conf, $hookmanager;
$sign=1;

View File

@ -1361,7 +1361,7 @@ class pdf_sponge extends ModelePDFFactures
// Total remise
$total_line_remise=0;
foreach($object->lines as $i => $line) {
$total_line_remise+= pdf_getLineTotalDiscountAmount($object,$i,$outputlangs,2); // TODO: add this methode to core/lib/pdf.lib
$total_line_remise+= pdfGetLineTotalDiscountAmount($object,$i,$outputlangs,2); // TODO: add this methode to core/lib/pdf.lib
// Gestion remise sous forme de ligne négative
if($line->total_ht < 0) $total_line_remise += -$line->total_ht;
}