From 0b56923de56281a98852c668f1190702bc542049 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 28 Jun 2012 19:49:54 +0200 Subject: [PATCH 1/2] Fix: Panicum module for supplier accountancy code --- htdocs/core/modules/societe/mod_codecompta_panicum.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/modules/societe/mod_codecompta_panicum.php b/htdocs/core/modules/societe/mod_codecompta_panicum.php index 06790783d48..3946b9d1569 100644 --- a/htdocs/core/modules/societe/mod_codecompta_panicum.php +++ b/htdocs/core/modules/societe/mod_codecompta_panicum.php @@ -78,7 +78,8 @@ class mod_codecompta_panicum extends ModeleAccountancyCode function get_code($db, $societe, $type='') { // Renvoie toujours ok - $this->code = $societe->code_compta; + if ($type == 'supplier') $this->code = $societe->code_compta_fournisseur; + else $this->code = $societe->code_compta; return 0; } } From 52c2d391942c11278094c0caa5542a1202610b2f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 28 Jun 2012 19:59:33 +0200 Subject: [PATCH 2/2] Fix: Can't modifiy accountancy code sell --- htdocs/product/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 4cedfecf2d7..cf0d74b2df3 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -126,7 +126,7 @@ if (empty($reshook)) $action=""; } - if ($action == 'setaccountancy_code_buy') + if ($action == 'setaccountancy_code_sell') { $object->fetch($id,$ref); $result = $object->setValueFrom('accountancy_code_sell', $_POST['accountancy_code_sell']);