From f7bb7783518930993cef2fabc314f6be589a6c99 Mon Sep 17 00:00:00 2001 From: Doug Hutcheson Date: Wed, 3 Jan 2024 06:29:41 +0800 Subject: [PATCH] ci4-bugfix ucase first letter of controller name Many labels were not picking up the language stings because the langauge file name was being passes to lang() without an uppercase first letter. --- app/Views/attributes/manage.php | 4 +- app/Views/cashups/manage.php | 4 +- app/Views/expenses/manage.php | 6 +- app/Views/expenses_categories/manage.php | 4 +- app/Views/giftcards/manage.php | 4 +- app/Views/item_kits/manage.php | 4 +- app/Views/items/manage.php | 4 +- app/Views/partial/bootstrap_tables_locale.php | 4 +- app/Views/people/manage.php | 6 +- app/Views/receivings/receiving.php | 58 ++++---- app/Views/sales/register.php | 132 +++++++++--------- app/Views/taxes/manage.php | 8 +- app/Views/taxes/tax_rates.php | 4 +- 13 files changed, 121 insertions(+), 121 deletions(-) diff --git a/app/Views/attributes/manage.php b/app/Views/attributes/manage.php index 693593c33..70474b949 100644 --- a/app/Views/attributes/manage.php +++ b/app/Views/attributes/manage.php @@ -25,8 +25,8 @@ diff --git a/app/Views/cashups/manage.php b/app/Views/cashups/manage.php index 871dd02ee..b66c15f03 100644 --- a/app/Views/cashups/manage.php +++ b/app/Views/cashups/manage.php @@ -48,8 +48,8 @@ $(document).ready(function()   diff --git a/app/Views/expenses/manage.php b/app/Views/expenses/manage.php index 5cb06adf0..573881efb 100644 --- a/app/Views/expenses/manage.php +++ b/app/Views/expenses/manage.php @@ -54,9 +54,9 @@ $(document).ready(function() - diff --git a/app/Views/expenses_categories/manage.php b/app/Views/expenses_categories/manage.php index e193a1283..3bd5f0f40 100644 --- a/app/Views/expenses_categories/manage.php +++ b/app/Views/expenses_categories/manage.php @@ -30,8 +30,8 @@ $(document).ready(function()
diff --git a/app/Views/giftcards/manage.php b/app/Views/giftcards/manage.php index fd5be66ae..9c747fcf4 100644 --- a/app/Views/giftcards/manage.php +++ b/app/Views/giftcards/manage.php @@ -21,8 +21,8 @@ $(document).ready(function()
diff --git a/app/Views/item_kits/manage.php b/app/Views/item_kits/manage.php index 85a6bfef9..de1aa2500 100644 --- a/app/Views/item_kits/manage.php +++ b/app/Views/item_kits/manage.php @@ -32,8 +32,8 @@ $(document).ready(function()
diff --git a/app/Views/items/manage.php b/app/Views/items/manage.php index 23ff9a832..d9fe2f3ad 100644 --- a/app/Views/items/manage.php +++ b/app/Views/items/manage.php @@ -79,8 +79,8 @@ $(document).ready(function() diff --git a/app/Views/partial/bootstrap_tables_locale.php b/app/Views/partial/bootstrap_tables_locale.php index 45df78dba..5377f7930 100644 --- a/app/Views/partial/bootstrap_tables_locale.php +++ b/app/Views/partial/bootstrap_tables_locale.php @@ -43,11 +43,11 @@ formatConfirmAction: function(action) { if (action == "delete") { - return ""; + return ""; } else { - return ""; + return ""; } } }; diff --git a/app/Views/people/manage.php b/app/Views/people/manage.php index 036791cf8..ca4aff434 100644 --- a/app/Views/people/manage.php +++ b/app/Views/people/manage.php @@ -41,15 +41,15 @@ $(document).ready(function() { ?> diff --git a/app/Views/receivings/receiving.php b/app/Views/receivings/receiving.php index 26fcf5efb..e64a605c7 100644 --- a/app/Views/receivings/receiving.php +++ b/app/Views/receivings/receiving.php @@ -44,7 +44,7 @@ if (isset($success))
-
 
+
 
-
 
+
 
"); + $(this).attr('value',""); }); $("#finish_receiving_button").click(function() @@ -567,7 +567,7 @@ $(document).ready(function() $("#cancel_receiving_button").click(function() { - if (confirm('')) + if (confirm('')) { $('#finish_receiving_form').attr('action', ''); $('#finish_receiving_form').submit(); diff --git a/app/Views/sales/register.php b/app/Views/sales/register.php index f95bded7d..143a3cb9c 100644 --- a/app/Views/sales/register.php +++ b/app/Views/sales/register.php @@ -68,7 +68,7 @@ if(isset($success))
@@ -779,7 +779,7 @@ $(document).ready(function() $('#item').focus(); $('#item').blur(function() { - $(this).val(""); + $(this).val(""); }); $('#item').autocomplete( { @@ -802,7 +802,7 @@ $(document).ready(function() }); var clear_fields = function() { - if($(this).val().match("")) + if($(this).val().match("")) { $(this).val(''); } @@ -813,7 +813,7 @@ $(document).ready(function() }); $('#customer').blur(function() { - $(this).val(""); + $(this).val(""); }); $('#customer').autocomplete( { @@ -889,7 +889,7 @@ $(document).ready(function() }); $('#cancel_sale_button').click(function() { - if(confirm("")) + if(confirm("")) { $('#buttons_form').attr('action', ""); $('#buttons_form').submit(); @@ -967,21 +967,21 @@ function check_payment_type() { var cash_mode = ; - if($("#payment_types").val() == "") + if($("#payment_types").val() == "") { $("#sale_total").html(""); $("#sale_amount_due").html(""); - $("#amount_tendered_label").html(""); + $("#amount_tendered_label").html(""); $("#amount_tendered:enabled").val('').focus(); $(".giftcard-input").attr('disabled', false); $(".non-giftcard-input").attr('disabled', true); $(".giftcard-input:enabled").val('').focus(); } - else if(($("#payment_types").val() == "" && cash_mode == '1')) + else if(($("#payment_types").val() == "" && cash_mode == '1')) { $("#sale_total").html(""); $("#sale_amount_due").html(""); - $("#amount_tendered_label").html(""); + $("#amount_tendered_label").html(""); $("#amount_tendered:enabled").val(""); $(".giftcard-input").attr('disabled', true); $(".non-giftcard-input").attr('disabled', false); @@ -990,7 +990,7 @@ function check_payment_type() { $("#sale_total").html(""); $("#sale_amount_due").html(""); - $("#amount_tendered_label").html(""); + $("#amount_tendered_label").html(""); $("#amount_tendered:enabled").val(""); $(".giftcard-input").attr('disabled', true); $(".non-giftcard-input").attr('disabled', false); diff --git a/app/Views/taxes/manage.php b/app/Views/taxes/manage.php index 00dd4a1e3..7b8bb55eb 100644 --- a/app/Views/taxes/manage.php +++ b/app/Views/taxes/manage.php @@ -6,16 +6,16 @@ diff --git a/app/Views/taxes/tax_rates.php b/app/Views/taxes/tax_rates.php index 231385fea..8689da7f1 100644 --- a/app/Views/taxes/tax_rates.php +++ b/app/Views/taxes/tax_rates.php @@ -20,8 +20,8 @@ $(document).ready(function()