Improve Exception for accountancy ACH, VEN, ODS, FIN

This commit is contained in:
sparkyx 2024-12-28 11:16:31 +01:00
parent 4ff5243aef
commit 7731305ab8
11 changed files with 92 additions and 44 deletions

View file

@ -1644,11 +1644,9 @@ class Acc_Ledger extends jrn_def_sql
}
catch (Exception $e)
{
record_log($e);
record_log($e);
$this->db->rollback();
echo _('OPERATION ANNULEE ');
echo '<hr>';
echo __FILE__.__LINE__.$e->getMessage();
echo_warning(_('OPERATION ANNULEE voir log'));
exit();
}
$this->db->commit();