浏览代码

In FR, activate constant INVOICE_DISABLE_REPLACEMENT by default

Alexandre SPANGARO 2 年之前
父节点
当前提交
1d70280ec2
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      htdocs/master.inc.php

+ 6 - 0
htdocs/master.inc.php

@@ -227,6 +227,12 @@ if (!defined('NOREQUIREDB') && !defined('NOREQUIRESOC')) {
 		// For FR, default value of option to show category of operations is on by default. Decret n°2099-1299 2022-10-07
 		$conf->global->INVOICE_CATEGORY_OF_OPERATION = 1;
 	}
+	if ($mysoc->country_code == 'FR' && !isset($conf->global->INVOICE_DISABLE_REPLACEMENT)) {
+		// For FR, the replacement invoice type is not allowed.
+		// From an accounting point of view, this creates holes in the numbering of the invoice.
+		// This is very problematic during a fiscal control.
+		$conf->global->INVOICE_DISABLE_REPLACEMENT = 1;
+	}
 
 	if ($mysoc->localtax1_assuj || $mysoc->localtax2_assuj) {
 		// For countries using the 2nd or 3rd tax, we disable input/edit of lines using the price including tax (because 2nb and 3rd tax not yet taken into account).