Task #1256 - Créer une balise pour "Libellé de paiement" du 1er écran de saisie des ventes

#1256 : fix bug , get unknown tag is the special tag rows is greater than the number of items
This commit is contained in:
Dany De Bontridder 2016-01-14 12:54:51 +01:00
parent 1ede8c2419
commit a5b75843e0

View file

@ -1180,6 +1180,7 @@ class Document
*/
if (preg_match('/^ATTR/', $p_tag) == 1)
{
$r="";
// Retrieve f_id
if ( isset ($p_array['e_march'.$this->counter]))
{
@ -1192,12 +1193,14 @@ class Document
*/
if (preg_match('/^BENEFATTR/', $p_tag) == 1)
{
$r="";
$qcode=isset($p_array['qcode_benef'])?$p_array['qcode_benef']:'';
// Retrieve f_id
$r=$this->replace_special_tag($qcode,$p_tag);
}
if (preg_match('/^CUSTATTR/', $p_tag) == 1)
{
$r="";
if ( isset($p_array['qcode_dest']) || isset($p_array['e_client']) )
{
$qcode=(isset($p_array['qcode_dest']))?$p_array['qcode_dest']:$p_array['e_client'];