Fix: [ bug #301 ] P.U. HT affiché est en fait TTC dans la base
This commit is contained in:
parent
38c3ac7be8
commit
71325ec629
@ -68,23 +68,21 @@ switch ( $_GET['action'] )
|
|||||||
{
|
{
|
||||||
$thirdpartyid = $_SESSION['CASHDESK_ID_THIRDPARTY'];
|
$thirdpartyid = $_SESSION['CASHDESK_ID_THIRDPARTY'];
|
||||||
$productid = $ret['rowid'];
|
$productid = $ret['rowid'];
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$societe = new Societe($db);
|
||||||
$societe->fetch($thirdpartyid);
|
$societe->fetch($thirdpartyid);
|
||||||
|
|
||||||
$product = new Product($db, $productid);
|
$product = new Product($db, $productid);
|
||||||
|
|
||||||
if(isset($product->multiprices[$societe->price_level]))
|
if(isset($product->multiprices[$societe->price_level]))
|
||||||
{
|
{
|
||||||
$ret['price'] = $product->multiprices_ttc[$societe->price_level];
|
$ret['price'] = $product->multiprices[$societe->price_level];
|
||||||
// $product->multiprices_min[$societe->price_level];
|
$ret['price_ttc'] = $product->multiprices_ttc[$societe->price_level];
|
||||||
// $product->multiprices_min_ttc[$societe->price_level];
|
$ret['tva_tx'] = $product->multiprices_tva_tx[$societe->price_level];
|
||||||
// $product->multiprices_base_type[$societe->price_level];
|
|
||||||
$ret['tva_tx'] = $product->multiprices_tva_tx[$societe->price_level];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/** end add Ditto */
|
/** end add Ditto */
|
||||||
|
|
||||||
$obj_facturation->id( $ret['rowid'] );
|
$obj_facturation->id( $ret['rowid'] );
|
||||||
$obj_facturation->ref( $ret['ref'] );
|
$obj_facturation->ref( $ret['ref'] );
|
||||||
$obj_facturation->stock( $ret['reel'] );
|
$obj_facturation->stock( $ret['reel'] );
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user