Subject | Re: How to avoid committing unbalanced records |
---|---|
Author | wang960 |
Post date | 2005-02-08T09:38:48Z |
Hi,
You can use a stored procedure to centralize the update, in the proc,
check the total debit against credit, if not balance trigger an
exception, in the program side, you can handle that exception.
frank
--- In firebird-support@yahoogroups.com, Thierry Holtzmann
<tholtzmann@n...> wrote:
You can use a stored procedure to centralize the update, in the proc,
check the total debit against credit, if not balance trigger an
exception, in the program side, you can handle that exception.
frank
--- In firebird-support@yahoogroups.com, Thierry Holtzmann
<tholtzmann@n...> wrote:
> In accounting programs, we have debit records and credit records andverify
> they have to be balanced. Is there a way at the database level to
> this, and to avoid committing a transaction involving unbalancedrecords ?
> Or at least can we query a list of records in instance of a transaction
> commit ?