Update facture.class.php
This commit is contained in:
parent
9e88bf1f1c
commit
66eec4da52
@ -1469,8 +1469,9 @@ class Facture extends CommonInvoice
|
|||||||
*
|
*
|
||||||
* @return int 1 if OK, < 0 if KO
|
* @return int 1 if OK, < 0 if KO
|
||||||
*/
|
*/
|
||||||
public function fetch_lines()
|
public function fetch_lines($only_product = 0, $loadalsotranslation = 0)
|
||||||
{
|
{
|
||||||
|
global $langs, $conf;
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
$this->lines=array();
|
$this->lines=array();
|
||||||
|
|
||||||
@ -1560,6 +1561,13 @@ class Facture extends CommonInvoice
|
|||||||
|
|
||||||
$line->fetch_optionals();
|
$line->fetch_optionals();
|
||||||
|
|
||||||
|
// multilangs
|
||||||
|
if (! empty($conf->global->MAIN_MULTILANGS) && ! empty($objp->fk_product) && ! empty($loadalsotranslation)) {
|
||||||
|
$line = new Product($this->db);
|
||||||
|
$line->fetch($objp->fk_product);
|
||||||
|
$line->getMultiLangs();
|
||||||
|
}
|
||||||
|
|
||||||
$this->lines[$i] = $line;
|
$this->lines[$i] = $line;
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user