Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Accounting...

Accounting...

Scheduled Pinned Locked Moved The Lounge
questiondatabasedesignhelplearning
21 Posts 12 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Erik Funkenbusch

    Thanks. Yes, I see what you mean. As far as the accounts go. In my opinion, I really don't care what the accounts are called, or what they're for. I just move money between them. The only thing I have to know is whether it's a Assett or Liability account, correct? The logic of the rest is all up to the reporting engine, not the account engine. Some questions I have are regarding the data model. For instance, in a transaction table, should you have two columns, one for debits, one for credits. Or should you have a single "amount" column, and have debits be negative and credits positive? Or should you not have signed numbers, and just use a type field to indicate whether it's a debit or credit? I think you see where I'm going here. Furthermore, should you have two physical transaction records for each logical one (ie, subtract $100 from account A, and a second as the Add to Acct B)? Or should each record be a complete transaction (ie. $100 was subtracted from Acct A and added to Acct B)? Did I mention I hate Accounting? Lol.

    -- Where are we going? And why am I in this handbasket?

    E Offline
    E Offline
    El Corazon
    wrote on last edited by
    #21

    Erik Funkenbusch wrote:

    Furthermore, should you have two physical transaction records for each logical one (ie, subtract $100 from account A, and a second as the Add to Acct B)? Or should each record be a complete transaction (ie. $100 was subtracted from Acct A and added to Acct B)?

    You've just touched on the reference in wiki to "multiple entry accounting", but double is the general term. So lets assume you have a sale, a very common transaction. The sale was for $110.00, $10 being taxes, $60 inventory, and $40 gross profit from sales so the register entry looks something like this:

    Account credit debit
    Cash 110.00
    Tax 10.00
    Inventory 60.00
    Gross Profit 40.00

    _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups