QloApps icon indicating copy to clipboard operation
QloApps copied to clipboard

'bookings' webservice PUT API service updates

Open rahulpant93 opened this issue 8 months ago • 3 comments

While using the PUT API for adding/updating services to a booking, the service details are not reflecting correctly.

  1. For example, if a room has an auto added service for "Room Maintenance", while trying to get services in bookings API, the service is not reflected:

Image

Image

  1. If I now go and add a service from the PUT API, the auto added service is removed:

Image

Image

  1. Now If I go and add another service through PUT, the previously added services prices are updated as well:

Image

Image

Image

rahulpant93 avatar Apr 04 '25 09:04 rahulpant93

Hi @rahulpant93,

To resolve the issue you're facing, you can use the following PR: #1333

vishal-singh-webkul avatar Apr 10 '25 07:04 vishal-singh-webkul

Hi @vishal-singh-webkul thanks for the response. This PR does fix the fetching of auto added charges, but the PUT request to add additional items goes and updates the other service item charges as well:

Image

I was trying to explore the code as well but not getting enough bandwidth, if you could guide on which function within the class handles it, I can try debugging and fixing it.

rahulpant93 avatar Apr 11 '25 04:04 rahulpant93

Hi @rahulpant93,

To resolve the issue you're facing regarding the services prices, you can use the following PR: https://github.com/Qloapps/QloApps/pull/1407

vishal-singh-webkul avatar Apr 14 '25 07:04 vishal-singh-webkul