Browse Source

MMI Fix display more infos only on situation invoices

CalyClay 1 year ago
parent
commit
c5eee85a85
1 changed files with 3 additions and 3 deletions
  1. 3 3
      htdocs/core/modules/facture/doc/pdf_sponge.modules.php

+ 3 - 3
htdocs/core/modules/facture/doc/pdf_sponge.modules.php

@@ -1676,7 +1676,7 @@ class pdf_sponge extends ModelePDFFactures
 		}
 
 		// MMI Hack : Display order total
-		if (true) {
+		if ($object->situation_counter) {
 			if (!empty($total_acomptes)) {
 				$pdf->SetFillColor(255, 255, 255);
 				$pdf->SetXY($col1x, $posy);
@@ -1692,7 +1692,7 @@ class pdf_sponge extends ModelePDFFactures
 		}
 
 		// MMI Hack : Want to show it
-		if (true) {
+		if ($object->situation_counter) {
 			// Display all total
 			$pdf->SetFont('', '', $default_font_size - 1);
 			$pdf->SetFillColor(255, 255, 255);
@@ -1706,7 +1706,7 @@ class pdf_sponge extends ModelePDFFactures
 		}
 
 		// MMI Hack : Display order total
-		if (true) {
+		if ($object->situation_counter) {
 			if (!empty($commande)) {
 				$pdf->SetFillColor(255, 255, 255);
 				$pdf->SetXY($col1x, $posy);