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:
parent
1ede8c2419
commit
a5b75843e0
1 changed files with 3 additions and 0 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue