mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
Properly pluralize quantity unit in success message on purchase/consume/inventory page
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
);
|
||||
}
|
||||
|
||||
toastr.success(L('Added #1 #2 of #3 to stock', amount, productDetails.quantity_unit_stock.name, productDetails.product.name));
|
||||
toastr.success(L('Added #1 #2 of #3 to stock', amount, Pluralize(amount, productDetails.quantity_unit_stock.name, productDetails.quantity_unit_stock.name_plural), productDetails.product.name));
|
||||
|
||||
if (addBarcode !== undefined)
|
||||
{
|
||||
|
Reference in New Issue
Block a user