From eb1acb528113336e397155f872d05ba8225acd88 Mon Sep 17 00:00:00 2001 From: Donald Kibet Date: Wed, 6 Nov 2024 12:27:57 +0300 Subject: [PATCH] (fix) KHP3-7040 : Fix UnknownFormatConversionException in CashierRestController logging statement --- .../cashier/rest/controller/CashierRestController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omod/src/main/java/org/openmrs/module/kenyaemr/cashier/rest/controller/CashierRestController.java b/omod/src/main/java/org/openmrs/module/kenyaemr/cashier/rest/controller/CashierRestController.java index 8f87ff4..245f705 100644 --- a/omod/src/main/java/org/openmrs/module/kenyaemr/cashier/rest/controller/CashierRestController.java +++ b/omod/src/main/java/org/openmrs/module/kenyaemr/cashier/rest/controller/CashierRestController.java @@ -19,14 +19,14 @@ public class CashierRestController extends BaseRestController { @RequestMapping(method = RequestMethod.POST, path = "/billable-service") @ResponseBody public Object get(@RequestBody BillableServiceMapper request) { - //if the request has a uuid, update the billable service item + // Update the associated billable service item if a UUID is present in the request. if (request.getUuid() != null) { System.out.println("Updating billable service item " + request.getName()); BillableService billableService = request.billableServiceUpdateMapper(request); IBillableItemsService service = Context.getService(IBillableItemsService.class); service.save(billableService); } else { - System.out.printf("Saving a new service item " + request.getName()); + System.out.println("Saving a new service item " + request.getName()); BillableService billableService = request.billableServiceMapper(request); IBillableItemsService service = Context.getService(IBillableItemsService.class); service.save(billableService);