mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-04 22:06:05 -04:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user