Skip to content

Commit

Permalink
Fixed error with reprice from current list
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Nov 8, 2021
1 parent f325e0b commit 75760ef
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,9 @@ private Customer.Builder createCustomer(CreateCustomerRequest request) {
Optional.ofNullable(address.getEmail()).ifPresent(email -> businessPartnerLocation.setEMail(email));
Optional.ofNullable(address.getPhone()).ifPresent(phome -> businessPartnerLocation.setPhone(phome));
Optional.ofNullable(address.getDescription()).ifPresent(description -> businessPartnerLocation.set_ValueOfColumn("Description", description));
if(Util.isEmpty(businessPartnerLocation.getName())) {
businessPartnerLocation.setName(".");
}
businessPartnerLocation.saveEx(transactionName);
// Contact
if(!Util.isEmpty(address.getContactName()) || !Util.isEmpty(address.getEmail()) || !Util.isEmpty(address.getPhone())) {
Expand Down Expand Up @@ -2778,7 +2781,7 @@ private MOrder updateOrder(UpdateOrderRequest request) {
if(!Util.isEmpty(request.getPriceListUuid())) {
priceListId = RecordUtil.getIdFromUuid(I_M_PriceList.Table_Name, request.getPriceListUuid(), transactionName);
}
if(priceListId > 0) {
if(priceListId > 0 && priceListId != salesOrder.getM_PriceList_ID()) {
salesOrder.setM_PriceList_ID(priceListId);
salesOrder.saveEx(transactionName);
configurePriceList(salesOrder);
Expand Down

0 comments on commit 75760ef

Please sign in to comment.