last from 01 2019

This commit is contained in:
Kevin Adametz 2019-02-07 16:25:02 +01:00
parent f9fcaac838
commit ed80b25b85
19 changed files with 626 additions and 341 deletions

View file

@ -75,6 +75,7 @@ class BookingController extends Controller
$booking->booking_draft_items()->create([
'booking_id' => $booking->id,
'travel_program_id' => $travel_program_id,
'fewo_lodging_id' => null,
'travel_class_id' => null,
'draft_item_id' => null,
'draft_type_id' => null,
@ -88,6 +89,7 @@ class BookingController extends Controller
'adult' => null ,
'price_children' => 0,
'children' => 0,
'price' => 0,
'pos' => $i,
'in_pdf' => true,
'comfort' => $comfort
@ -106,6 +108,9 @@ class BookingController extends Controller
if(isset($draft_item['days_duration'])){
$di->days_duration = $draft_item['days_duration'];
}
if(isset($draft_item['price'])){
$di->price = $draft_item['price'];
}
$di->service = $draft_item['service'];
$di->in_pdf = isset($draft_item['in_pdf']) ? true : false;
$di->pos = $i++;
@ -126,6 +131,7 @@ class BookingController extends Controller
$booking->booking_draft_items()->create([
'booking_id' => $booking->id,
'travel_program_id' => $travel_program_id,
'fewo_lodging_id' => null,
'travel_class_id' => null,
'draft_item_id' => null,
'draft_type_id' => null,
@ -139,6 +145,7 @@ class BookingController extends Controller
'adult' => null ,
'price_children' => 0,
'children' => 0,
'price' => 0,
'pos' => $i,
'in_pdf' => true,
'comfort' => $comfort