Skip to content

Commit

Permalink
Fixed error when is change the document type
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Oct 13, 2021
1 parent 0e52de3 commit 254261c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2463,7 +2463,8 @@ private MOrder updateOrder(UpdateOrderRequest request) {
// Document Type
if(!Util.isEmpty(request.getDocumentTypeUuid())) {
int documentTypeId = RecordUtil.getIdFromUuid(I_C_DocType.Table_Name, request.getDocumentTypeUuid(), transactionName);
if(documentTypeId > 0) {
if(documentTypeId > 0
&& documentTypeId != salesOrder.getC_DocTypeTarget_ID()) {
salesOrder.setC_DocTypeTarget_ID(documentTypeId);
salesOrder.setC_DocType_ID(documentTypeId);
// Set Sequenced No
Expand Down

0 comments on commit 254261c

Please sign in to comment.