@turik
Please, change your code
<?php
class AOS_LogicHooks {
public function statusInvoicesChanges ($bean, $event, $arguments) {
// addition line:
$GLOBALS['log']->debug(get_class()." ". __FUNCTION__." Status:\n ".print_r($bean->status,true));
if ($bean->status == 'Validated'){
$GLOBALS['log']->debug("Status has been changed");
}
}
}
?>
It’s show that function called.