Procházet zdrojové kódy

MMICompta : Add option to simplify Quadra libalpha

Mathieu Moulin před 1 rokem
rodič
revize
3f6ca51ec2

+ 4 - 1
htdocs/accountancy/class/accountancyexport.class.php

@@ -602,7 +602,10 @@ class AccountancyExport
 					$Tab['lib_compte'] = str_pad(self::trunc(dol_string_unaccent($data->subledger_label), 30), 30);
 
 				if ($data->doc_type == 'customer_invoice') {
-					$Tab['lib_alpha'] = strtoupper(str_pad('C'.self::trunc(dol_string_unaccent($data->subledger_label), 6), 6));
+					if (!empty($conf->global->MMI_COMPTA_EXPORT_LIBALPHA_USE_1STLETTER))
+						$Tab['lib_alpha'] = strtoupper(str_pad('C'.self::trunc(dol_string_unaccent($data->subledger_label), 1), 6));
+					else
+						$Tab['lib_alpha'] = strtoupper(str_pad('C'.self::trunc(dol_string_unaccent($data->subledger_label), 6), 6));
 					$Tab['filler'] = str_repeat(' ', 52);
 					$Tab['coll_compte'] = str_pad(self::trunc($conf->global->ACCOUNTING_ACCOUNT_CUSTOMER, 8), 8);
 				} elseif ($data->doc_type == 'supplier_invoice') {

+ 1 - 1
htdocs/custom/mmicompta

@@ -1 +1 @@
-Subproject commit 3b8825f2cccc3400e982ebffe98146a7041e9ba8
+Subproject commit ec9621e137f471c2aeac62fa2c6e1dd3a3bb0b5a