소스 검색

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