Skip to content

Commit

Permalink
Merge pull request #46 from palladiumkenya/KHP3-7040
Browse files Browse the repository at this point in the history
(fix)  KHP3-7040 : Fix UnknownFormatConversionException in CashierRestController logging statement
  • Loading branch information
PatrickWaweru authored Nov 6, 2024
2 parents afdbdb3 + eb1acb5 commit e622d43
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e622d43

Please sign in to comment.