mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Stock Service Updates (#421)
* viewjs consume: implement location and update stock specific * Transfer Products * services StockService#GetProductStockEntriesByLocation: add method * services StockService#AddProduct: check for stock and locations * services StockService: include location_id * services StockService#LocationExists: add method * services StockService#UndoBooking: fix based on stockRow * Reimplement StockServer->TransferProduct (one loop for the whole action to preserve stock_id) * Ensure that the location_id is never NULL in the stock and stock_log table (checked by an INSERT trigger, sets the products default location if empty) * Only consider stock amount at the given location on consume, if supplied * Restore more/old display text for "specific stock entry" * Don't allow transfering tare weight enabled products * Various small changes (code style, missing OpenAPI endpoint, remove location_id null checking) * Updated translations strings * Added transaction_id and correlation_id to stock_log entries to group them together * ProductCard - location to default location label change * Also undo correlated bookings on undo * Added API endpoints for listing and undoing transactions and use them on purchase/consume/inventory/stockoverview * Initial Stock detail page * Allow Undo for Tranfers * Price step to .01 * Some localization string changes & fixes
This commit is contained in:
@@ -929,9 +929,6 @@ msgstr ""
|
||||
msgid "Mark as opened"
|
||||
msgstr ""
|
||||
|
||||
msgid "Expires on %1$s; Bought on %2$s"
|
||||
msgstr ""
|
||||
|
||||
msgid "Not opened"
|
||||
msgstr ""
|
||||
|
||||
@@ -1567,3 +1564,45 @@ msgstr ""
|
||||
|
||||
msgid "This means the next execution of this chore should only be scheduled every %s years"
|
||||
msgstr ""
|
||||
|
||||
msgid "Transfer"
|
||||
msgstr ""
|
||||
|
||||
msgid "From location"
|
||||
msgstr ""
|
||||
|
||||
msgid "To location"
|
||||
msgstr ""
|
||||
|
||||
msgid "There are no units available at this location"
|
||||
msgstr ""
|
||||
|
||||
msgid "Amount: %1$s; Expires on %2$s; Bought on %3$s"
|
||||
msgstr ""
|
||||
|
||||
msgid "Transfered %1$s of %2$s from %3$s to %4$s"
|
||||
msgstr ""
|
||||
|
||||
msgid "Show stock entries"
|
||||
msgstr ""
|
||||
|
||||
msgid "Stock entry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Best before date"
|
||||
msgstr ""
|
||||
|
||||
msgid "Purchased date"
|
||||
msgstr ""
|
||||
|
||||
msgid "Consume all %s for this stock entry"
|
||||
msgstr ""
|
||||
|
||||
msgid "Stock edit"
|
||||
msgstr ""
|
||||
|
||||
msgid "The amount cannot be lower than %1$s"
|
||||
msgstr ""
|
||||
|
||||
msgid "Stock entry successfully updated"
|
||||
msgstr ""
|
||||
|
Reference in New Issue
Block a user