Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6329063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:34:44+00:00 2026-05-24T17:34:44+00:00

We currently have one table that stores information about what the customer owes us.

  • 0

We currently have one table that stores information about what the customer owes us.
We also have a table stores what we owe the customer.
Every month the debits and credits that are within date scope are combined to create a bill.
The bill consists of two tables, Bill and BIllDetails

Each bill detail represents a credit or a debit. Each bill detail has an amount field.

The question is, in the bill details should all numbers be stored as positive, or should credits be stored as negative.

If all numbers are stored as positive we would use references in the details table to know what operation to preform when calculating the bill total.

If we store positives and negatives it seems not consistent with best accounting practices, but we could simply total the numbers.

What is the best practice here? References would be useful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:34:45+00:00Added an answer on May 24, 2026 at 5:34 pm

    I don’t think there is a standard to dictate on this. IMHO, you’re getting kind of picky here. It isn’t going to make that big of a difference how you store it. If you want to get technical, having negative numbers will take up slightly more space in the database; but you’re only going to get the savings here if you take the time to mark the column as non-negative.

    Personally; I would go with leaving both numbers positive b/c I’m guessing that is going to make it easier when you’re writing programs for report generation. So, if you’re producing a bill for the client; you might consider a debit as positive and a credit as negative; but for internal documents (like calculating profits/etc) you might want to flip that representation. Having them both be positive forces you to make the decision when you’re generating the report on if a number should be represented as positive or negative.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table User that stores user information - such as name, date
I currently have a table and in one of the <td> , I have
I currently have a user's table which contains a one-to-one relationship for Youtube OAuth
I currently have one project that currently contains multiple packages. These packages make up
I (currently) have two forms, one that needs to call the other. In other
I currently have an asp:GridView that displays a few BoundFields and then one asp:TemplateField
I have a table TABA(PK:NAME) that stores NAME,NAME_TYPE,SOURCE this way: NAME NAME_TYPE SOURCE ----
I have a table which has records that contain a persons information and a
I have a database table called Posts which stores all the information regarding an
We currently have one publisher and four subscribers using merge replication. Due to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.