ci4-bugfix to stock locations and item csv import

Stock locations are now being handled correctly in the Configuration stock page, due to a fix to Models/Stock_locations.php  and imports to stock locations from csv are now working due to a correction to Controllers/Items.php
This commit is contained in:
Doug Hutcheson
2024-01-14 07:07:37 +08:00
committed by jekkos
parent b36ef3a603
commit 9315d56408
2 changed files with 3 additions and 3 deletions

View File

@@ -1216,11 +1216,11 @@ class Items extends Secure_Controller
'Tax 2 Percent' => $row['Tax 2 Percent']
];
/* foreach($allowed_locations as $location_name)
foreach($allowed_locations as $location_name)
{
$check_for_numeric_values[] = $row["location_$location_name"];
}
*/
//Check for non-numeric values which require numeric
foreach($check_for_numeric_values as $key => $value)
{

View File

@@ -255,7 +255,7 @@ class Stock_location extends Model
$this->employee = model('Employee');
// Retrieve the menu_group assigned to the grant for the module and use that for the new stock locations
$menu_group = $employee->get_menu_group($module, $employee['person_id']);
$menu_group = $this->employee->get_menu_group($module, $employee['person_id']);
$grants_data = ['permission_id' => $permission_id, 'person_id' => $employee['person_id'], 'menu_group' => $menu_group];