소스 검색

MMIDocuments : RetainedWarrantyCumulated

Mathieu Moulin 1 년 전
부모
커밋
2f9eb91ed4
2개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 14 0
      htdocs/core/modules/facture/doc/pdf_sponge.modules.php
  2. 1 1
      htdocs/custom/mmidocuments

+ 14 - 0
htdocs/core/modules/facture/doc/pdf_sponge.modules.php

@@ -1848,6 +1848,20 @@ class pdf_sponge extends ModelePDFFactures
 					$pdf->MultiCell($col2x - $col1x, $tab2_hl, $retainedWarrantyToPayOn, $useborder, 'L', 1);
 					$pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index);
 					$pdf->MultiCell($largcol2, $tab2_hl, price($retainedWarranty), $useborder, 'R', 1);
+
+					// MMI Moulin Mathieu iProspective
+					if ($conf->global->INVOICE_RETAINED_WARRANTY_CUMULATED_SHOW) {
+						// retained warranty cumulated
+						$index++;
+						$index++;
+						$pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index);
+
+						$retainedWarrantyToPayOn = $outputlangs->transnoentities("RetainedWarrantyCumulated");
+
+						$pdf->MultiCell($col2x - $col1x, $tab2_hl, $retainedWarrantyToPayOn, $useborder, 'L', 1);
+						$pdf->SetXY($col2x, $tab2_top + $tab2_hl * $index);
+						$pdf->MultiCell($largcol2, $tab2_hl, price(round($total_a_payer_ttc * $avancementGlobal/100 * $object->retained_warranty/100, 2)), $useborder, 'R', 1);
+					}
 				}
 			}
 		}

+ 1 - 1
htdocs/custom/mmidocuments

@@ -1 +1 @@
-Subproject commit 6abd62e8b68ee16f2fe54d39da91d33458879615
+Subproject commit b1d667b09d359085103e7cd0ddc80f9a271b38c1