Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
71b814156b
@ -1829,6 +1829,8 @@ class Facture extends CommonInvoice
|
|||||||
|
|
||||||
if ($error == 0)
|
if ($error == 0)
|
||||||
{
|
{
|
||||||
|
$this->brouillon = 1;
|
||||||
|
$this->statut = 0;
|
||||||
$this->db->commit();
|
$this->db->commit();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1180,7 +1180,7 @@ class Form
|
|||||||
$sql.= ", pl.label as label_translated";
|
$sql.= ", pl.label as label_translated";
|
||||||
}
|
}
|
||||||
// Price by quantity
|
// Price by quantity
|
||||||
if (! empty($conf->global->PRODUIT_PRICE_BY_QTY))
|
if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY))
|
||||||
{
|
{
|
||||||
$sql.= ", (SELECT pp.rowid FROM ".MAIN_DB_PREFIX."product_price as pp WHERE pp.fk_product = p.rowid";
|
$sql.= ", (SELECT pp.rowid FROM ".MAIN_DB_PREFIX."product_price as pp WHERE pp.fk_product = p.rowid";
|
||||||
if ($price_level >= 1) $sql.= " AND price_level=".$price_level;
|
if ($price_level >= 1) $sql.= " AND price_level=".$price_level;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user