Skip to content

Commit

Permalink
6142-app - don't fail shipmentsched creation if order line has… (#1361)
Browse files Browse the repository at this point in the history
* code fix after change in metasfresh
metasfresh/metasfresh#6142
  • Loading branch information
metas-ts authored Feb 10, 2020
1 parent d57a7d0 commit 2d18326
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-2.0.html>.
Expand Down Expand Up @@ -205,7 +205,7 @@ private Optional<HUPIItemProductId> getDefaultPackingMaterialFromPriceList(
.list(I_M_ProductPrice.class)
.stream()
.map(productPrice -> HUPIItemProductId.ofRepoIdOrNone(productPrice.getM_HU_PI_Item_Product_ID()))
.filter(HUPIItemProductId::isRegular)
.filter(id -> HUPIItemProductId.isRegular(id))
.collect(ImmutableSet.toImmutableSet());
if (packingMaterialIds.isEmpty())
{
Expand Down

0 comments on commit 2d18326

Please sign in to comment.