whoops. wrong function name.
This commit is contained in:
parent
400775e925
commit
fd532b592f
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ postUpstockR bId = do
|
||||||
FormSuccess c ->
|
FormSuccess c ->
|
||||||
if upstockSingles c > 0 && upstockCrates c > 0
|
if upstockSingles c > 0 && upstockCrates c > 0
|
||||||
then do
|
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]
|
runDB $ update bId [BeverageAmount +=. total]
|
||||||
setMessageI MsgStockedUp
|
setMessageI MsgStockedUp
|
||||||
redirect RestockR
|
redirect RestockR
|
||||||
|
|
Loading…
Reference in a new issue