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'];
|
||||
$productid = $ret['rowid'];
|
||||
|
||||
|
||||
$societe = new Societe($db);
|
||||
$societe->fetch($thirdpartyid);
|
||||
|
||||
|
||||
$product = new Product($db, $productid);
|
||||
|
||||
|
||||
if(isset($product->multiprices[$societe->price_level]))
|
||||
{
|
||||
$ret['price'] = $product->multiprices_ttc[$societe->price_level];
|
||||
// $product->multiprices_min[$societe->price_level];
|
||||
// $product->multiprices_min_ttc[$societe->price_level];
|
||||
// $product->multiprices_base_type[$societe->price_level];
|
||||
$ret['tva_tx'] = $product->multiprices_tva_tx[$societe->price_level];
|
||||
$ret['price'] = $product->multiprices[$societe->price_level];
|
||||
$ret['price_ttc'] = $product->multiprices_ttc[$societe->price_level];
|
||||
$ret['tva_tx'] = $product->multiprices_tva_tx[$societe->price_level];
|
||||
}
|
||||
}
|
||||
}
|
||||
/** end add Ditto */
|
||||
|
||||
|
||||
$obj_facturation->id( $ret['rowid'] );
|
||||
$obj_facturation->ref( $ret['ref'] );
|
||||
$obj_facturation->stock( $ret['reel'] );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user