浏览代码

MMIDocuments Display avoir as acompte

Mathieu Moulin 2 年之前
父节点
当前提交
fb54db35aa
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      htdocs/core/modules/facture/doc/pdf_sponge.modules.php
  2. 1 1
      htdocs/custom/mmidocuments

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

@@ -1870,6 +1870,9 @@ class pdf_sponge extends ModelePDFFactures
 			if ($creditnoteamount) {
 				$labeltouse = ($outputlangs->transnoentities("CreditNotesOrExcessReceived") != "CreditNotesOrExcessReceived") ? $outputlangs->transnoentities("CreditNotesOrExcessReceived") : $outputlangs->transnoentities("CreditNotes");
 				$labeltouse .= (is_object($outputlangsbis) ? (' / '.($outputlangsbis->transnoentities("CreditNotesOrExcessReceived") != "CreditNotesOrExcessReceived") ? $outputlangsbis->transnoentities("CreditNotesOrExcessReceived") : $outputlangsbis->transnoentities("CreditNotes")) : '');
+				// MMIDocument Moulin Mathieu Feature update
+				if (!empty($object->array_options['options_avoirs_as_acompte']))
+					$labeltouse = $outputlangs->transnoentities("CreditNotesReceivedBefore") ;
 				$index++;
 				$pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index);
 				$pdf->MultiCell($col2x - $col1x, $tab2_hl, $labeltouse, 0, 'L', 0);

+ 1 - 1
htdocs/custom/mmidocuments

@@ -1 +1 @@
-Subproject commit 307af876bed3caa46963983f25120fa1b5953b8e
+Subproject commit 3ca50d7b64626ca879476ae0349c9d9731e23a45