Skip to content

Commit

Permalink
HUPPOrderQtyDAO.isHuIdIssued: check if the BOMLine is set
Browse files Browse the repository at this point in the history
to avoid matching received HUs too

metasfresh/metasfresh-webui-api-legacy#1190
  • Loading branch information
teosarca committed May 2, 2019
1 parent 5b9d9e4 commit 874d1c9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public boolean isHuIdIssued(@NonNull final HuId huId)
return Services.get(IQueryBL.class).createQueryBuilder(I_PP_Order_Qty.class)
.addOnlyActiveRecordsFilter()
.addEqualsFilter(I_PP_Order_Qty.COLUMN_M_HU_ID, huId)
.addNotNull(I_PP_Order_Qty.COLUMN_PP_Order_BOMLine_ID) // it's actually an issue (and not a receipt)
.create()
.match();
}
Expand Down

0 comments on commit 874d1c9

Please sign in to comment.