|
@@ -1368,7 +1368,7 @@ class Propal extends CommonObject
|
|
|
/*
|
|
|
* Lignes propales liees a un produit ou non
|
|
|
*/
|
|
|
- $sql = "SELECT d.rowid, d.fk_propal, d.fk_parent_line, d.label as custom_label, d.description, d.price, d.tva_tx, d.localtax1_tx, d.localtax2_tx, d.localtax1_type, d.localtax2_type, d.qty, d.fk_remise_except, d.remise_percent, d.subprice, d.fk_product,";
|
|
|
+ $sql = "SELECT d.rowid, d.fk_propal, d.fk_parent_line, d.label as custom_label, d.description, d.price, d.vat_src_code, d.tva_tx, d.localtax1_tx, d.localtax2_tx, d.localtax1_type, d.localtax2_type, d.qty, d.fk_remise_except, d.remise_percent, d.subprice, d.fk_product,";
|
|
|
$sql.= " d.info_bits, d.total_ht, d.total_tva, d.total_localtax1, d.total_localtax2, d.total_ttc, d.fk_product_fournisseur_price as fk_fournprice, d.buy_price_ht as pa_ht, d.special_code, d.rang, d.product_type,";
|
|
|
$sql.= " d.fk_unit,";
|
|
|
$sql.= ' p.ref as product_ref, p.description as product_desc, p.fk_product_type, p.label as product_label,';
|
|
@@ -1404,6 +1404,7 @@ class Propal extends CommonObject
|
|
|
$line->label = $objp->custom_label;
|
|
|
$line->desc = $objp->description; // Description ligne
|
|
|
$line->qty = $objp->qty;
|
|
|
+ $line->vat_src_code = $objp->vat_src_code;
|
|
|
$line->tva_tx = $objp->tva_tx;
|
|
|
$line->localtax1_tx = $objp->localtax1_tx;
|
|
|
$line->localtax2_tx = $objp->localtax2_tx;
|
|
@@ -3593,7 +3594,7 @@ class PropaleLigne extends CommonObjectLine
|
|
|
*/
|
|
|
function fetch($rowid)
|
|
|
{
|
|
|
- $sql = 'SELECT pd.rowid, pd.fk_propal, pd.fk_parent_line, pd.fk_product, pd.label as custom_label, pd.description, pd.price, pd.qty, pd.tva_tx,';
|
|
|
+ $sql = 'SELECT pd.rowid, pd.fk_propal, pd.fk_parent_line, pd.fk_product, pd.label as custom_label, pd.description, pd.price, pd.qty, pd.vat_src_code, pd.tva_tx,';
|
|
|
$sql.= ' pd.remise, pd.remise_percent, pd.fk_remise_except, pd.subprice,';
|
|
|
$sql.= ' pd.info_bits, pd.total_ht, pd.total_tva, pd.total_ttc, pd.fk_product_fournisseur_price as fk_fournprice, pd.buy_price_ht as pa_ht, pd.special_code, pd.rang,';
|
|
|
$sql.= ' pd.fk_unit,';
|
|
@@ -3619,6 +3620,7 @@ class PropaleLigne extends CommonObjectLine
|
|
|
$this->qty = $objp->qty;
|
|
|
$this->price = $objp->price; // deprecated
|
|
|
$this->subprice = $objp->subprice;
|
|
|
+ $this->vat_src_code = $objp->vat_src_code;
|
|
|
$this->tva_tx = $objp->tva_tx;
|
|
|
$this->remise = $objp->remise; // deprecated
|
|
|
$this->remise_percent = $objp->remise_percent;
|