whoops. wrong function name.

This commit is contained in:
nek0 2016-01-30 23:40:37 +01:00
parent 400775e925
commit fd532b592f

View file

@ -49,7 +49,7 @@ postUpstockR bId = do
FormSuccess c ->
if upstockSingles c > 0 && upstockCrates c > 0
then do
let total = upstockSingles c + (upstockCrates c * fromMaybe 0 $ perCrate bev)
let total = upstockSingles c + (upstockCrates c * (fromMaybe 0 $ beveragePerCrate bev))
runDB $ update bId [BeverageAmount +=. total]
setMessageI MsgStockedUp
redirect RestockR