Neustrukturierung Customer / Lead / Booking Phase 2
This commit is contained in:
parent
313f0dbf4e
commit
6df9c401af
69 changed files with 3809 additions and 374 deletions
|
|
@ -58,6 +58,10 @@ class TravelUserBookingFewoRepository extends BaseRepository
|
|||
{
|
||||
|
||||
$model = TravelUserBookingFewo::findOrFail($id);
|
||||
if (!$model->invoice_number) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$travel_info_user_text = str_replace("€", "€", $travel_info_user_text);
|
||||
$model->info_mail_text = $travel_info_user_text;
|
||||
$model->save();
|
||||
|
|
@ -70,6 +74,9 @@ class TravelUserBookingFewoRepository extends BaseRepository
|
|||
$path = $model->getTravelInfoPath();
|
||||
$dir = $model->getTravelInfoDir();
|
||||
$filename = $model->getTravelInfoFileName();
|
||||
if (!$filename) {
|
||||
return false;
|
||||
}
|
||||
$pdf_file = new CreatePDF('pdf.travel_info_fewo', 'fewo_infos');
|
||||
$pdf_file->create($data, $filename, 'save', $path);
|
||||
$pdf_file->merger($dir, $filename, 'sterntours-template-logo');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue