From 71c50e1fcffeb589ad7240e26450ec2620b63ecb Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 3 Nov 2023 14:31:29 +1100 Subject: [PATCH] Update warning message for item quantity --- .../javascripts/admin/spree/orders/variant_autocomplete.js.erb | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb b/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb index bf054b0cd1..001055417e 100644 --- a/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb +++ b/app/assets/javascripts/admin/spree/orders/variant_autocomplete.js.erb @@ -50,7 +50,7 @@ $(document).ready(function() { if (quantity > maxQuantity) { quantity = maxQuantity; save.parents('tr').find('input.line_item_quantity').val(maxQuantity); - ofnAlert(t("js.admin.orders.quantity_adjusted")); + ofnAlert(t("js.admin.orders.quantity_unavailable")); } else { adjustItems(shipment_number, variant_id, quantity, true); } diff --git a/config/locales/en.yml b/config/locales/en.yml index 583a2962f7..1927079a11 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3440,7 +3440,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using processing: "processing" void: "void" invalid: "invalid" - quantity_adjusted: "Insufficient stock available. Line item updated to maximum available quantity." + quantity_unavailable: "Insufficient stock available. Line item unsaved!" quantity_unchanged: "Quantity unchanged from previous amount." cancel_the_order_html: "This will cancel the current order.
Are you sure you want to proceed?" cancel_the_order_send_cancelation_email: "Send a cancellation email to the customer"