Added taxes display for sales order/quotation.
[fa-stable.git] / sales / includes / cart_class.inc
index d8792dd73a094e8858dbdb520c13055fc22c97a2..00b311684623ee981682796749bcafbe52d5a691 100644 (file)
@@ -465,7 +465,8 @@ class cart
 
                foreach ($this->line_items as $ln_itm) {
                        $items[] = $ln_itm->stock_id;
-                       $prices[] = round(($ln_itm->qty_dispatched *
+                       $prices[] = round(((
+                               $this->trans_type==ST_SALESORDER ?      $ln_itm->quantity : $ln_itm->qty_dispatched) *
                                $ln_itm->line_price()* (1 - $ln_itm->discount_percent)),  user_price_dec());
                }