Fixed undo consume stock transaction location handling (references #1602)

This commit is contained in:
Bernd Bestel 2021-09-27 17:50:19 +02:00
parent 19ff782c00
commit bed7965989
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Fixed that the context menu entries Consume and Transfer on the stock overview page were disabled when the amount in stock was < 1
- Fixed that when there was any chore with a schedule, but without a "next estimated tracking" date/time, the iCal export was broken
- Fixed that on consuming a product from not the products default location, the products default location was recorded in the stock journal
- Fixed that on undoing a stock consume transaction from not the products default location, the corresponding amount was always added back to to the products defaullt location
- The product and chore edit pages now have bottom-sticky save buttons
- A product picture can now be added when creating a product (was currently only possible when editing a product)

View File

@ -1352,7 +1352,8 @@ class StockService extends BaseService
'stock_id' => $logRow->stock_id,
'price' => $logRow->price,
'opened_date' => $logRow->opened_date,
'open' => $logRow->opened_date !== null
'open' => $logRow->opened_date !== null,
'location_id' => $logRow->location_id
]);
$stockRow->save();