Skip to content

Commit

Permalink
refs: #10676
Browse files Browse the repository at this point in the history
small location fix
  • Loading branch information
cp-ps committed Feb 19, 2021
1 parent 3f8a352 commit 15e7301
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ private JsonRequestLocationUpsertItem getShippingAddress(@NonNull final PatientD
location.setCity(patientDeliveryAddress.getCity());
location.setCountryCode(COUNTRY_CODE_DE);
location.setBpartnerName(patientDeliveryAddress.getName());
location.setBillToDefault(true);
location.setBillTo(true);
location.setShipTo(true);
location.setShipToDefault(true);

return JsonRequestLocationUpsertItem.builder()
.locationIdentifier(EXTERNAL_ID_PREFIX + SHIPPING_ADDR_PREFIX + patientId)
Expand Down Expand Up @@ -547,7 +547,7 @@ private Optional<JsonRequestBPartnerUpsertItem> mapDoctor()

final JsonRequestBPartner jsonRequestBPartner = new JsonRequestBPartner();
jsonRequestBPartner.setExternalId(JsonExternalId.of(doctor.getId()));
jsonRequestBPartner.setName(doctor.getFirstName() + " " + doctor.getLastName().toString());
jsonRequestBPartner.setName(doctor.getFirstName() + " " + doctor.getLastName());
jsonRequestBPartner.setPhone(doctor.getPhone());
jsonRequestBPartner.setCustomer(true);
// jsonRequestBPartner.setEmail(nursingService.getEmail()); //todo
Expand Down

0 comments on commit 15e7301

Please sign in to comment.