pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: ddurst@larubber.com, <pgsql-sql@postgresql.org>
Subject: Re: LONG - Question on dealing w/ numerics
Date: Tue, 28 Jan 2003 18:54:11 -0800
Message-ID: <web-2526955@davinci.ethosmedia.com> (raw)
In-Reply-To: <34281.216.86.192.34.1043801682.squirrel@www.la-rubber.com>

David,
 
> Cash - Debit  100
> A/R  - Credit 100
> Cash - Credit 100
> A/R  - Debit  100
> (Which should have a net affect of 0 on both accounts)
> 
> But here is the resulting balance on accounts,
> 
> Cash Debit  Balance 200
> A/R  Credit Balance 200

Here may your problem, and it's in the schema:  is "A/R" and account or
is "A/R Credit" an account?   You're being unclear in your e-mail,
which makes me suspect that you're being vague in your code as well.

If I'm totally off the mark, then please post the four calls to your
function that produced the above mis-balance, and I can easily spot the
problem for you.

-Josh



view thread (6+ messages)  latest in thread

Message-ID: <web-2526955@davinci.ethosmedia.com>
Permalink:  ../web-2526955@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-2526955@davinci.ethosmedia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com
  Subject: Re: LONG - Question on dealing w/ numerics
  In-Reply-To: <web-2526955@davinci.ethosmedia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox