Merge pull request #18682 from vincentjdc/product-price-in-product-select
Add product-id and price-id in dataset of product select
This commit is contained in:
commit
4bbda0115c
@ -3383,7 +3383,7 @@ class Form
|
|||||||
$opt .= ' disabled';
|
$opt .= ' disabled';
|
||||||
}
|
}
|
||||||
if (!empty($objp->idprodfournprice) && $objp->idprodfournprice > 0) {
|
if (!empty($objp->idprodfournprice) && $objp->idprodfournprice > 0) {
|
||||||
$opt .= ' data-qty="'.$objp->quantity.'" data-up="'.$objp->unitprice.'" data-discount="'.$outdiscount.'"';
|
$opt .= ' data-product-id="'.$objp->rowid.'" data-price-id="'.$objp->idprodfournprice.'" data-qty="'.$objp->quantity.'" data-up="'.$objp->unitprice.'" data-discount="'.$outdiscount.'"';
|
||||||
}
|
}
|
||||||
$opt .= ' data-description="'.dol_escape_htmltag($objp->description, 0, 1).'"';
|
$opt .= ' data-description="'.dol_escape_htmltag($objp->description, 0, 1).'"';
|
||||||
$opt .= ' data-html="'.dol_escape_htmltag($optlabel).'"';
|
$opt .= ' data-html="'.dol_escape_htmltag($optlabel).'"';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user