Change function to camel case
This commit is contained in:
parent
a83e7f3665
commit
9c414a7a57
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user