diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php index d332592da6d..33c4b415f0b 100644 --- a/htdocs/exports/class/export.class.php +++ b/htdocs/exports/class/export.class.php @@ -337,13 +337,15 @@ class Export /** * Build an input field used to filter the query * - * @param string $TypeField Type of Field to filter + * @param string $TypeField Type of Field to filter. Example: Text, List:c_country:label:rowid, List:c_stcom:label:code, Number, Boolean * @param string $NameField Name of the field to filter * @param string $ValueField Initial value of the field to filter * @return string html string of the input field ex : "" */ function build_filterField($TypeField, $NameField, $ValueField) { + global $langs; + $szFilterField=''; $InfoFieldList = explode(":", $TypeField); @@ -354,7 +356,7 @@ class Export case 'Date': case 'Duree': case 'Numeric': - $szFilterField='"; + $szFilterField=''; break; case 'Boolean': $szFilterField='"; - $this->db->free(); + $this->db->free($resql); } + else dol_print_error($this->db); break; } diff --git a/htdocs/install/mysql/data/llx_c_stcomm.sql b/htdocs/install/mysql/data/llx_c_stcomm.sql index 65516a27476..e1bf526d489 100644 --- a/htdocs/install/mysql/data/llx_c_stcomm.sql +++ b/htdocs/install/mysql/data/llx_c_stcomm.sql @@ -31,8 +31,8 @@ -- delete from llx_c_stcomm; -insert into llx_c_stcomm (id,code,libelle) values (-1, 'ST_NO', 'Ne pas contacter'); -insert into llx_c_stcomm (id,code,libelle) values ( 0, 'ST_NEVER', 'Jamais contacté'); -insert into llx_c_stcomm (id,code,libelle) values ( 1, 'ST_TODO', 'A contacter'); -insert into llx_c_stcomm (id,code,libelle) values ( 2, 'ST_PEND', 'Contact en cours'); -insert into llx_c_stcomm (id,code,libelle) values ( 3, 'ST_DONE', 'Contactée'); +insert into llx_c_stcomm (id,code,libelle) values (-1, 'ST_NO', 'Do not contact'); +insert into llx_c_stcomm (id,code,libelle) values ( 0, 'ST_NEVER', 'Never contacted'); +insert into llx_c_stcomm (id,code,libelle) values ( 1, 'ST_TODO', 'To contact'); +insert into llx_c_stcomm (id,code,libelle) values ( 2, 'ST_PEND', 'Contact in progress'); +insert into llx_c_stcomm (id,code,libelle) values ( 3, 'ST_DONE', 'Contacted'); diff --git a/htdocs/langs/en_US/bills.lang b/htdocs/langs/en_US/bills.lang index 5a805f4f6a1..10a8c5fecc4 100644 --- a/htdocs/langs/en_US/bills.lang +++ b/htdocs/langs/en_US/bills.lang @@ -74,8 +74,9 @@ PaymentsAlreadyDone=Payments already done PaymentsBackAlreadyDone=Payments back already done PaymentRule=Payment rule PaymentMode=Payment type -PaymentConditions=Payment term -PaymentConditionsShort=Payment term +PaymentTerm=Payment term +PaymentConditions=Payment terms +PaymentConditionsShort=Payment terms PaymentAmount=Payment amount ValidatePayment=Validate payment PaymentHigherThanReminderToPay=Payment higher than reminder to pay