Ejemplo n.º 1
0
function handle_delete()
{
    global $selected_id, $Mode;
    if (check_can_delete($selected_id)) {
        delete_this_fiscalyear($selected_id);
        display_notification(_('Selected fiscal year has been deleted'));
    }
    $Mode = 'RESET';
}
Ejemplo n.º 2
0
function handle_delete()
{
    global $selected_id, $Mode;
    if (check_can_delete($selected_id)) {
        //only delete if used in neither customer or supplier, comp prefs, bank trans accounts
        delete_this_fiscalyear($selected_id);
        display_notification(_('Selected fiscal year has been deleted'));
    }
    $Mode = 'RESET';
}