diff --git a/app/Controllers/EmployeeController.php b/app/Controllers/EmployeeController.php
index 6857487a..30f012b7 100755
--- a/app/Controllers/EmployeeController.php
+++ b/app/Controllers/EmployeeController.php
@@ -360,12 +360,13 @@ class EmployeeController extends AdminController
batch_files.status,
batch_files.client_branch_id,
- CASE
- WHEN batch_files.status = 'partially success' THEN
- batch_files.error_data
+ CASE
+ WHEN batch_files.status = 'partially success' OR batch_files.status = 'in-progress-partially' THEN
+ batch_files.error_data
ELSE
- error_data = null
- END AS error_data,
+ NULL
+ END AS error_data,
+
clients.short_name as client_short_name,
client_branch.branch_name,
diff --git a/app/Helpers/ExcelSanitizeHelper.php b/app/Helpers/ExcelSanitizeHelper.php
index 5c2836a7..f4591bfa 100644
--- a/app/Helpers/ExcelSanitizeHelper.php
+++ b/app/Helpers/ExcelSanitizeHelper.php
@@ -29,6 +29,7 @@ class ExcelSanitizeHelper
$cleanData[$key] = self::sanitizeArrayData($value); // Recursive call for nested arrays
} elseif (is_string($value)) {
// Remove non-printable characters and trim whitespace from strings
+ $value = str_replace("\u00a0", " ", $value);
$cleanData[$key] = trim(preg_replace(self::$nonPrintablePattern, '', $value));
} else {
$cleanData[$key] = $value; // Keep non-string/non-array data as is
diff --git a/app/Helpers/utility_helper.php b/app/Helpers/utility_helper.php
index 2e932ab7..54a5883a 100755
--- a/app/Helpers/utility_helper.php
+++ b/app/Helpers/utility_helper.php
@@ -665,3 +665,15 @@ if (!function_exists('check_pay_by_employee_or_company')) {
}
+if (!function_exists('is_json_string')) {
+ function is_json_string($string)
+ {
+ if (!is_string($string)) {
+ return false;
+ }
+
+ $decoded = json_decode($string, true);
+ return (json_last_error() === JSON_ERROR_NONE && is_array($decoded));
+ }
+}
+
diff --git a/app/Views/batch_list.php b/app/Views/batch_list.php
index d89a1ce8..f1a623fe 100755
--- a/app/Views/batch_list.php
+++ b/app/Views/batch_list.php
@@ -90,6 +90,17 @@
+
+
+
+
+
+
+
+
+
+
failed ;
@@ -94,10 +91,16 @@ $(document).ready(function(){
}
});
- $('#account_manager').multiselect('refresh');
+
+ $('#account_manager').select2({
+ placeholder: "Select Account Manager",
+ }).prop('disabled', true);
+
+ $("textarea.select2-search__field").attr('rows', '1');
+ $("textarea.select2-search__field").css('resize', 'none');
+
$('#head').prop('disabled', true);
$('#manager').prop('disabled', true);
- $('#account_manager').multiselect('disable');
}
@@ -172,14 +175,25 @@ $(document).ready(function(){
$('#manager').prop('disabled', !isDisabled);
if (isDisabled) {
- $('#account_manager').multiselect('enable');
+ $('#account_manager').select2({
+ placeholder: "Select Account Manager",
+ }).prop('disabled', false);
+
$('#client_rm_btnSubmit').show();
$(this).html(' Close Edit ');
} else {
- $('#account_manager').multiselect('disable');
+ $('#account_manager').select2({
+ placeholder: "Select Account Manager"
+ }).prop('disabled', true);
+
$('#client_rm_btnSubmit').hide();
$(this).html(' Edit ');
}
+
+ $("textarea.select2-search__field").attr('rows', '1');
+ $("textarea.select2-search__field").css('resize', 'none');
+
+
});