Skip to content

Commit

Permalink
Fix ingredient price factor can be zero from server
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiczedler committed Aug 3, 2023
1 parent 080f0c7 commit 7cfc339
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ private void fillWithRecipeIfNecessary() {
formData.getNotCheckStockFulfillmentLive().setValue(entry.isNotCheckStockFulfillment());
formData.getIngredientGroupLive().setValue(entry.getIngredientGroup());
formData.getNoteLive().setValue(entry.getNote());
if (entry.getPriceFactor() == 0) {
entry.setPriceFactor(1);
}
formData.getPriceFactorLive().setValue(NumUtil.trimAmount(entry.getPriceFactor(), maxDecimalPlacesAmount));

formData.setFilledWithRecipePosition(true);
Expand Down

0 comments on commit 7cfc339

Please sign in to comment.