File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -478,39 +478,7 @@ protected function assignOrderTracking($order_collection)
478478 Product::PRICE_ADDITION_TYPE_WITH_ROOM
479479 );
480480 }
481- // get auto added price to be displayed with room price
482- if (empty ($ cartHotelData [$ type_key ]['date_diff ' ][$ date_join ]['additional_services_price_auto_add_ti ' ])) {
483- $ cartHotelData [$ type_key ]['date_diff ' ][$ date_join ]['additional_services_price_auto_add_ti ' ] = 0 ;
484- }
485- $ cartHotelData [$ type_key ]['date_diff ' ][$ date_join ]['additional_services_price_auto_add_ti ' ] += $ objRoomTypeServiceProductOrderDetail ->getroomTypeServiceProducts (
486- $ idOrder ,
487- 0 ,
488- 0 ,
489- $ type_value ['product_id ' ],
490- $ data_v ['date_from ' ],
491- $ data_v ['date_to ' ],
492- $ data_v ['id_room ' ],
493- 1 ,
494- 1 ,
495- 1 ,
496- Product::PRICE_ADDITION_TYPE_WITH_ROOM
497- );
498- if (empty ($ cartHotelData [$ type_key ]['date_diff ' ][$ date_join ]['additional_services_price_auto_add_te ' ])) {
499- $ cartHotelData [$ type_key ]['date_diff ' ][$ date_join ]['additional_services_price_auto_add_te ' ] = 0 ;
500- }
501- $ cartHotelData [$ type_key ]['date_diff ' ][$ date_join ]['additional_services_price_auto_add_te ' ] += $ objRoomTypeServiceProductOrderDetail ->getroomTypeServiceProducts (
502- $ idOrder ,
503- 0 ,
504- 0 ,
505- $ type_value ['product_id ' ],
506- $ data_v ['date_from ' ],
507- $ data_v ['date_to ' ],
508- $ data_v ['id_room ' ],
509- 1 ,
510- 0 ,
511- 1 ,
512- Product::PRICE_ADDITION_TYPE_WITH_ROOM
513- );
481+
514482 // calculate averages now
515483 foreach ($ cartHotelData [$ type_key ]['date_diff ' ] as $ key => &$ value ) {
516484 $ value ['avg_paid_unit_price_tax_excl ' ] = Tools::ps_round ($ value ['avg_paid_unit_price_tax_excl ' ] / $ value ['num_rm ' ], 6 );
You can’t perform that action at this time.
0 commit comments