|
|
@@ -751,7 +751,7 @@ class BookingApi extends DolibarrApi
|
|
|
if ($db->num_rows($data) > 0) {
|
|
|
while ($row = $db->fetch_object($data)) {
|
|
|
ApiBbusLog::appLog("while");
|
|
|
- $bookingHistory = $this->saveEventData((int)$row->fk_event, $createdInvoiceArray[0]['invoice']['id'], null, $createdInvoiceArray[0]['invoice']['id']);
|
|
|
+ $bookingHistory = $this->saveEventData((int)$row->fk_event, $createdInvoiceArray[0]['invoice']['id'], null, $createdInvoiceArray[0]['invoice']['ref']);
|
|
|
|
|
|
ApiBbusLog::appLog("______________________________________________________________________________");
|
|
|
$this->updateBbticket($createdInvoiceArray[0]['invoice'], $bookingHistory);
|