Added feature for adding standard product in cart
This commit is contained in:
@@ -618,9 +618,13 @@ class OrderInvoiceCore extends ObjectModel
|
||||
$breakdown = array();
|
||||
$order_detail = $this->getProducts();
|
||||
$order_detail = array_filter($order_detail, function($v) {
|
||||
return (!$v['is_booking_product'] && $v['product_service_type'] == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE);
|
||||
return (!$v['is_booking_product'] && (
|
||||
$v['product_service_type'] == Product::SERVICE_PRODUCT_STANDALONE
|
||||
|| $v['product_service_type'] == Product::SERVICE_PRODUCT_lINKED_WITH_HOTEL
|
||||
));
|
||||
});
|
||||
$details = $order->getProductTaxesDetails($order_detail, false, Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE);
|
||||
|
||||
$details = $order->getProductTaxesDetails($order_detail, false);
|
||||
|
||||
if ($sum_composite_taxes) {
|
||||
$grouped_details = array();
|
||||
|
||||
Reference in New Issue
Block a user