Przeglądaj źródła

Update master.inc.php

sonikf 2 lat temu
rodzic
commit
ed84875320
1 zmienionych plików z 8 dodań i 1 usunięć
  1. 8 1
      htdocs/master.inc.php

+ 8 - 1
htdocs/master.inc.php

@@ -233,7 +233,14 @@ if (!defined('NOREQUIREDB') && !defined('NOREQUIRESOC')) {
 		// This is very problematic during a fiscal control.
 		$conf->global->INVOICE_DISABLE_REPLACEMENT = 1;
 	}
-
+	if ($mysoc->country_code == 'GR' && !isset($conf->global->INVOICE_DISABLE_REPLACEMENT)) {
+		// The replacement invoice type is not allowed in Greece.
+		$conf->global->INVOICE_DISABLE_REPLACEMENT = 1;
+	}	
+	if ($mysoc->country_code == 'GR' && !isset($conf->global->INVOICE_DISABLE_DEPOSIT)) {
+		// The deposit invoice type is not allowed in Greece.
+		$conf->global->INVOICE_DISABLE_DEPOSIT = 1;
+	}	
 	if (($mysoc->localtax1_assuj || $mysoc->localtax2_assuj) && !isset($conf->global->MAIN_NO_INPUT_PRICE_WITH_TAX)) {
 		// 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).
 		// Work In Progress to support all taxes into unit price entry when MAIN_UNIT_PRICE_WITH_TAX_IS_FOR_ALL_TAXES is set.