From 6c908aae61b83a7e0ba59da3e75d7f9943df25cd Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 19 Jun 2025 18:57:01 +0200 Subject: [PATCH] Small bug : search stock card insentive case, ANC_PRINT pa_id var --- include/class/anc_print.class.php | 2 +- include/class/stock_goods.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class/anc_print.class.php b/include/class/anc_print.class.php index 24f8e216d..748511c61 100644 --- a/include/class/anc_print.class.php +++ b/include/class/anc_print.class.php @@ -38,7 +38,7 @@ class Anc_Print var $from_poste; /*!< $from_poste from poste */ var $to_poste; /*!< $to_poste to the poste */ var $has_data; /*!< array of data */ - protected $pa_id; /*!< axis for analytic : plan */ + var $pa_id; /*!< axis for analytic : plan */ function __construct($p_cn) { diff --git a/include/class/stock_goods.class.php b/include/class/stock_goods.class.php index 668f07985..6c3385eac 100644 --- a/include/class/stock_goods.class.php +++ b/include/class/stock_goods.class.php @@ -150,7 +150,7 @@ class Stock_Goods extends Stock_Goods_Sql /* * check if code stock does exist */ - $count=$cn->get_value('select count(*) from fiche_detail where ad_id=$1 and ad_value=$2', + $count=$cn->get_value('select count(*) from fiche_detail where ad_id=$1 and upper(ad_value)=upper($2)', array(ATTR_DEF_STOCK,$stock)); if ( $count==0) { throw new Exception(_("Code stock inutilisé").h($stock));