Re: Accounting Schema - Mailing list pgsql-general

From Ian Harding
Subject Re: Accounting Schema
Date
Msg-id 3AF48E58.395806D5@pakrat.com
Whole thread Raw
In response to Accounting Schema  ("Dave Cramer" <Dave@micro-automation.net>)
Responses Re: Re: Accounting Schema  ("Oliver Elphick" <olly@lfix.co.uk>)
List pgsql-general
Credits are positive, debits are negative.  I have never seen an accounting
package that did not follow this basic rule.

Dave Cramer wrote:

> Hi all,
>
> Can anyone out there with more experience than me give me some hints as to
> how to do accounting tables in a db. The problem I am wrestling with is how
> to represent credits, and debits.
> One way is to identify credits and debits with a transactiontype, and keep
> all of the numbers positive which models the way accountants do it. This
> makes things liking calculating the balance difficult with a sql statement.
>
> Any hints would be appreciated.
>
> Dave
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


pgsql-general by date:

Previous
From: armelle clech
Date:
Subject: Visual StudioC++ 6.0 project configuration for postgresql use
Next
From: "David Wall"
Date:
Subject: Re: VACUUM is hanging - jdbc?