Show the number of guests on invoice_customer_pdf.php

More
6 years 7 months ago - 6 years 7 months ago #10232 by gmonamour
In the file invoice.php I added
'id' => $reid
$displayData = array(
			'reservation'     => $info[0],
			'asset'           => $asset,
			'invoice_number'  => $formatedNumber . $digit . $number,
			'solidres_config' => $srconfig,
			'timezone'        => $timezone,
			'direction'       => $direction,
			'id' => $reid
And in the file invoice_customer_pdf.php
I get the id with
echo $displayData['id']
It seems to work.
Is that correct for you?
regards

My site with Solidres www.gmonamour.it/
Last edit: 6 years 7 months ago by gmonamour.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #10240 by solidres
Hi,

We are sorry but code modification is out of our support scope.

We offer Custom Development service if you want to hire our developers to modify the code for you.

Regards,

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #10243 by gmonamour
Ok, never mind.
I had more tests and it works fine.
So, for me it is OK.
Thanks, best regards

My site with Solidres www.gmonamour.it/

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #10245 by gmonamour
Hi,
Is there a way to override the file
plugins > solidres > invoice > invoice.php ?
Thanks a lot
regards

My site with Solidres www.gmonamour.it/

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #10264 by gmonamour
Hi,
I've ended my test and my modification works only from backend. I suppose because it keep the number of persons from database. On fronted, when a user does a booking the database is not written yet. So the number of persons is null.
I'm tried to fix that but I'm not be able. I'll give up.
For the moment I'm going to send the correct invoice by backend with my current change.
But I think that to have the number of persons in the invoice could be useful for other user, so, if I don't bother you I'm going to write it on the request list.
Thanks a lot
best regard

My site with Solidres www.gmonamour.it/
Last edit: 6 years 7 months ago by gmonamour.

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #10272 by solidres
Hi,

Yes, technically it is possible, you can write a new plugin to override it and hook it into the processing flow to replace the default one.

For front end, if you want to get the guest number, make sure that you hook into this event to make sure that everything is saved correctly first:

onReservationAfterSaveComplete()

Regards,

Please Log in or Create an account to join the conversation.

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?