diff --git a/ChangeLog b/ChangeLog index 22b71858b4c..15b50425f45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,18 +41,18 @@ For users: - New: A more responsive desgin for statistic box of home page. - Qual: Implement same rule for return value of all command line scripts (0 when success, <>0 if error). - New: [ task #1005 ] Adapting to Spanish legislation bill numbering -- New: [ task #1011 ] Now supplier order and invoice deal with payment terms and mode -- New: [ task #1014 ] Add option to recursivly add parent category -- New: [ task #1016 ] Can define a specific numbering for deposits -- New: [ task #918 ] Stock replenishment -- Fix: [ bug #992 ] Proforma invoices don't have a separated numeric count -- New : Add pdf link into supplier invoice list and supplier order list -- New : Genrate auto the PDF for supplier invoice -- New : Add category into filter webservice thirdparty method getListOfThirdParties -- New : Allow to define margin or mark rate during quoting, ordering, invoicing -- New : User permissions on margin module -- New : Add ref supplier into muscadet model -- New : Add ability to copy contact address to clipboard +- New: [ task #1011 ] Now supplier order and invoice deal with payment terms and mode. +- New: [ task #1014 ] Add option to recursivly add parent category. +- New: [ task #1016 ] Can define a specific numbering for deposits. +- New: [ task #918 ] Stock replenishment. +- Fix: [ bug #992 ] Proforma invoices don't have a separated numeric count. +- New : Add pdf link into supplier invoice list and supplier order list. +- New : Genrate auto the PDF for supplier invoice. +- New : Add category into filter webservice thirdparty method getListOfThirdParties. +- New : Allow to define margin or mark rate during quoting, ordering, invoicing. +- New : User permissions on margin module. +- New : Add ref supplier into muscadet model/ +- New : Add ability to copy contact address to clipboard. - New: Can use tag {mm} before {yy} even when there is a reset into numbering masks. - New: [ task #1060 ] Register fields localtax(1|2)_type into details tables. - New: [ task #923 ] Localtax support for ODT templates. @@ -61,7 +61,8 @@ For users: - New: Can send an email from thirdparty card. - New: Can cancel holidays that were previously validated. - Fix: [bug #1022] correct margin calculation for credit notes. -- New: Can choose contact on event (action com) creation, and filtred by thirdparty +- New: Can choose contact on event (action com) creation, and filtred by thirdparty. +- New: Add hidden option MAIN_FORCE_DEFAULT_STATE_ID. For translators: - Qual: Normalized sort order of all languages files with english reference files. diff --git a/dev/iso-normes/vat_number_names.txt b/dev/iso-normes/vat_number_names.txt new file mode 100644 index 00000000000..23fce59ed3b --- /dev/null +++ b/dev/iso-normes/vat_number_names.txt @@ -0,0 +1 @@ +http://en.wikipedia.org/wiki/VAT_identification_number \ No newline at end of file diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 6faeb1fa951..3b9d257314e 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -57,6 +57,14 @@ if ($user->societe_id > 0) $socid = $user->societe_id; } +$object=new Facture($db); + +// Load object +if ($facid > 0) +{ + $ret=$object->fetch($facid); +} + // Initialize technical object to manage hooks of paiements. Note that conf->hooks_modules contains array array $hookmanager = new HookManager($db); $hookmanager->initHooks(array('paiementcard')); diff --git a/htdocs/compta/paiement/rapport.php b/htdocs/compta/paiement/rapport.php index b3a8939482f..9c8febe9e1a 100644 --- a/htdocs/compta/paiement/rapport.php +++ b/htdocs/compta/paiement/rapport.php @@ -55,7 +55,7 @@ if ($action == 'builddoc') $rap = new pdf_paiement($db); $outputlangs = $langs; - if (! empty(GETPOST('lang_id'))) + if (GETPOST('lang_id')) { $outputlangs = new Translate("",$conf); $outputlangs->setDefaultLang(GETPOST('lang_id')); diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index c6413b4beae..692a340b6ca 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2005-2012 Regis Houssin + * Copyright (C) 2005-2013 Regis Houssin * Copyright (C) 2010-2013 Juanjo Menent * Copyright (C) 2012 Christophe Battarel * Copyright (C) 2011-2012 Philippe Grand @@ -464,7 +464,7 @@ abstract class CommonObject $sql.= " WHERE tc.element='".$this->element."'"; if ($activeonly == 1) $sql.= " AND tc.active=1"; // only the active type - + if (! empty($source)) $sql.= " AND tc.source='".$source."'"; $sql.= " ORDER by tc.".$order; @@ -1112,9 +1112,9 @@ abstract class CommonObject $row = $this->db->fetch_row($resql); $rows[] = $row[0]; // Add parent line into array rows $childrens = $this->getChildrenOfLine($row[0]); - if (! empty($children)) + if (! empty($childrens)) { - foreach($children as $child) + foreach($childrens as $child) { array_push($rows, $child); } @@ -2621,7 +2621,7 @@ abstract class CommonObject } } - + /* This is to show add lines */ diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 3296a879523..4f5119697d0 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4,7 +4,7 @@ * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Eric Seigne - * Copyright (C) 2005-2012 Regis Houssin + * Copyright (C) 2005-2013 Regis Houssin * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2006 Marc Barilley/Ocebo * Copyright (C) 2007 Franky Van Liedekerke @@ -800,7 +800,7 @@ class Form while ($i < $num) { $obj = $this->db->fetch_object($resql); - + if ($conf->global->SOCIETE_ADD_REF_IN_LIST) { if (($obj->client) && (!empty($obj->code_client))) { $label = $obj->code_client. ' - '; @@ -814,7 +814,7 @@ class Form { $label=$obj->nom; } - + if ($showtype) { if ($obj->client || $obj->fournisseur) $label.=' ('; @@ -2484,9 +2484,9 @@ class Form /** * Show a confirmation HTML form or AJAX popup. - * Easiest way to use this is with useajax=1. - * If you use useajax='xxx', you must also add jquery code to trigger opening of box (with correct parameters) - * just after calling this method. For example: + * Easiest way to use this is with useajax=1. + * If you use useajax='xxx', you must also add jquery code to trigger opening of box (with correct parameters) + * just after calling this method. For example: * print '