ソースを参照

MMICompta : Option to permit deposit on validated invoices if not transfered in accounting

Mathieu Moulin 7 ヶ月 前
コミット
99bf7ac90f
3 ファイル変更3 行追加3 行削除
  1. 1 1
      .gitmodules
  2. 1 1
      htdocs/core/tpl/object_discounts.tpl.php
  3. 1 1
      htdocs/custom/mmicompta

+ 1 - 1
.gitmodules

@@ -9,7 +9,7 @@
 [submodule "htdocs/custom/mmicompta"]
 	path = htdocs/custom/mmicompta
 	url = git@gogs.iprospective.fr:iProspective/dolibarr-module-mmicompta.git
-	branch = 16.0
+	branch = 19.0
 [submodule "htdocs/custom/sfycustom"]
 	path = htdocs/custom/sfycustom
 	url = git@gogs.iprospective.fr:iProspective/dolibarr-module-sfycustom.git

+ 1 - 1
htdocs/core/tpl/object_discounts.tpl.php

@@ -62,7 +62,7 @@ if ($isNewObject) {
 
 // Is there is commercial discount or down payment available ?
 if ($absolute_discount > 0) {
-	if (!empty($cannotApplyDiscount) || !$isInvoice || $isNewObject || $object->statut > $objclassname::STATUS_DRAFT || $object->type == $objclassname::TYPE_CREDIT_NOTE || $object->type == $objclassname::TYPE_DEPOSIT) {
+	if (!empty($cannotApplyDiscount) || !$isInvoice || $isNewObject || (isModEnabled('accounting') && $object->getVentilExportCompta() > 0) || ($object->statut > $objclassname::STATUS_DRAFT && ! getDolGlobalInt('INVOICE_VALIDATED_PERMIT_DEPOSIT')) || $object->type == $objclassname::TYPE_CREDIT_NOTE || $object->type == $objclassname::TYPE_DEPOSIT) {
 		$translationKey = !empty($discount_type) ? 'HasAbsoluteDiscountFromSupplier' : 'CompanyHasAbsoluteDiscount';
 		$text = $langs->trans($translationKey, price($absolute_discount), $langs->transnoentities("Currency".$conf->currency)).'.';
 

+ 1 - 1
htdocs/custom/mmicompta

@@ -1 +1 @@
-Subproject commit ec9621e137f471c2aeac62fa2c6e1dd3a3bb0b5a
+Subproject commit 1531078fb1334b30ce1d2a4764c26f62ef9205ad