فهرست منبع

event bookinghistory fixes

szollosil 1 سال پیش
والد
کامیت
a72945d84a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      custom/booking/class/api_booking.class.php

+ 1 - 1
custom/booking/class/api_booking.class.php

@@ -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);