News for hackers. Stuff that matters.
Re:Accounting For Developers, Part I by rahimnathwani on Wednesday August 17, 2022 @12:16PM (#32498276)
Maintenance invoice issued:

  DR accounts receivable
  CR income
Maintenance paid

  DR bank account
  CR accounts receivable
Each apartment is part of accounts receivable.

Normally accounts receivable has a DR balance (because apartment owners pay you AFTER you invoice them, so they are usually DEBTors).

Re:Accounting For Developers, Part I by sudhirj on Wednesday August 17, 2022 @12:22PM (#32498351)
> Each apartment is part of accounts receivable.

Like a sub-account? This is probably the mindfuck part. So every apartment owner who opens up their statement is seeing a filtered balance?

Re:Accounting For Developers, Part I by rahimnathwani on Wednesday August 17, 2022 @12:32PM (#32498496)
You could implement it as either a subaccount per customer (in which case the balance is just the sum of all txns in that account) or have 'apartment' as another dimension (field) you store (optionally) for each transaction.

Either way you can get a sum of all txns that have hit that apartment's AR account.

Re:Accounting For Developers, Part I by sudhirj on Wednesday August 17, 2022 @12:38PM (#32498573)
Thanks, let me think about this. This feels counterintuitive to me, and increases complexity a bit.