ssSudan Nil Frontend + extra Days + price in booking form - export + mail
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3483 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
b28c7db598
commit
98bd71c760
22 changed files with 2186 additions and 32 deletions
|
|
@ -175,9 +175,12 @@ class BookingSternToursCrmExporter extends SternToursCrmExporter
|
|||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
$resp = $this->httpPostAPIv3('create_drafts', [
|
||||
'travel_program_id' => $tp->getId(),
|
||||
'comfort' => $bookingRequest->getComfort(),
|
||||
'booking_before' => $bookingPriceInfo['booking_before'],
|
||||
'booking_after' => $bookingPriceInfo['booking_after'],
|
||||
'booking_id' => array_values(array_slice(explode("/", $bookingUrl), -1))[0],
|
||||
'request_date' => (new \DateTime())->format('Y-m-d'),
|
||||
'startDateStr' => $startDateStr,
|
||||
|
|
|
|||
|
|
@ -104,14 +104,14 @@ abstract class SternToursCrmExporter
|
|||
|
||||
//api URL
|
||||
$data = json_encode($postData);
|
||||
// var_dump($data);
|
||||
//var_dump($data);
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $r->success->token, 'Accept:application/json', 'Content-Type:application/json']);
|
||||
curl_setopt($ch, CURLOPT_URL, $baseUrl.'draft/create_drafts_from_booking');
|
||||
$result = curl_exec($ch);
|
||||
$r = json_decode($result);
|
||||
//var_dump($r);
|
||||
// var_dump($r);
|
||||
if($r->success) {
|
||||
curl_close($ch);
|
||||
return $r->success;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue