Staff theft - MOD

Working with high value goods, trying to minimise staff theft is an ongoing problem.



Here’s my latest trick to catch them out…



Allow them full access to be able to adjust stock levels up and down in the admin.



Edit /include/admin/products.php





Find the function: fn_update_product(



after “if (!empty($product_data)) {”



Put:


$_data = fn_check_table_fields($product_data, $db_tables['products']);
if ($oldamount != $_data[amount])
{
mail("YOUREMAIL@ADDRESS","$_data[product_code] changed from $oldamount to $_data[amount]","$_data[product_code] changed from $oldamount to $_data[amount]",$headers);
}








You will now get an email whenever someone adjusts stock.

You should try to make it so you can tell who. This way you can ask why they did it. It was either a hacker or them.

[quote name=‘mdekok3000’]You should try to make it so you can tell who. This way you can ask why they did it. It was either a hacker or them.[/quote]



Most hackers won’t bother changing your stock units :)==D

Should be straight forward enough to specify the user. We only use a global user login and just have CCTV at every terminal.



Anyway, this mod is also good for back tracking when stock items came in at a glance by looking at the stock email account.



You could probably do this with logs but this makes it a lot easier.