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. General Programming
  3. Algorithms
  4. Invoice / Payments history table or statement of account

Invoice / Payments history table or statement of account

Scheduled Pinned Locked Moved Algorithms
questiondiscussion
5 Posts 3 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.
  • B Offline
    B Offline
    Bastien Vandamme
    wrote on last edited by
    #1

    Hello, I need to print statement of account of my clients. I have a table that contains my invoices and another table that contains my payments. Each month I will have to print the history of invoices and payments with last month balance the calculate the new balance.

    Date of transaction Reference Invoice Payment Balance
    2016-02-25 09:23 FLO1602001 2281.2700 0 2281.2700
    2016-02-25 09:51 FLO1602002 18860.1000 0 21141.3700
    2016-04-14 09:39 RV16040100 0 -20205.3700 936

    Could you advise me? What is the best practice? 1. I create a new transaction table and each month I fill this new table with my invoice and payment tables. Or 2. I re-calculate each month my last month balance ?

    L J 2 Replies Last reply
    0
    • B Bastien Vandamme

      Hello, I need to print statement of account of my clients. I have a table that contains my invoices and another table that contains my payments. Each month I will have to print the history of invoices and payments with last month balance the calculate the new balance.

      Date of transaction Reference Invoice Payment Balance
      2016-02-25 09:23 FLO1602001 2281.2700 0 2281.2700
      2016-02-25 09:51 FLO1602002 18860.1000 0 21141.3700
      2016-04-14 09:39 RV16040100 0 -20205.3700 936

      Could you advise me? What is the best practice? 1. I create a new transaction table and each month I fill this new table with my invoice and payment tables. Or 2. I re-calculate each month my last month balance ?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Accounts payable (AP) or receivable (AR)? "Best practices" utilizes "journals"; to which daily transactions are "journalized"; which are then "posted" to "sub-ledgers" that maintain current balances; and monthly closing / opening balances. The AP and AR (sub)ledgers typically contain one account per vendor / customer; with "sub-accounts" representing invoice debits and credits. The AP and AR ledgers roll-up their totals to the "general ledger"; as (total) payables and receivables (per period; and current balances).

      "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

      B 1 Reply Last reply
      0
      • L Lost User

        Accounts payable (AP) or receivable (AR)? "Best practices" utilizes "journals"; to which daily transactions are "journalized"; which are then "posted" to "sub-ledgers" that maintain current balances; and monthly closing / opening balances. The AP and AR (sub)ledgers typically contain one account per vendor / customer; with "sub-accounts" representing invoice debits and credits. The AP and AR ledgers roll-up their totals to the "general ledger"; as (total) payables and receivables (per period; and current balances).

        "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

        B Offline
        B Offline
        Bastien Vandamme
        wrote on last edited by
        #3

        Thank you for your reply. Do you have a link to a tutorial or more documentation?

        L 1 Reply Last reply
        0
        • B Bastien Vandamme

          Thank you for your reply. Do you have a link to a tutorial or more documentation?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          [Accounting Basics Tutorial](https://www.tutorialspoint.com/accounting\_basics/index.htm)

          "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

          1 Reply Last reply
          0
          • B Bastien Vandamme

            Hello, I need to print statement of account of my clients. I have a table that contains my invoices and another table that contains my payments. Each month I will have to print the history of invoices and payments with last month balance the calculate the new balance.

            Date of transaction Reference Invoice Payment Balance
            2016-02-25 09:23 FLO1602001 2281.2700 0 2281.2700
            2016-02-25 09:51 FLO1602002 18860.1000 0 21141.3700
            2016-04-14 09:39 RV16040100 0 -20205.3700 936

            Could you advise me? What is the best practice? 1. I create a new transaction table and each month I fill this new table with my invoice and payment tables. Or 2. I re-calculate each month my last month balance ?

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            The other response is good. However if in fact this is only for you, then it is just going to be easier if you do exactly what you suggested, recalculate each month for the previous month. Creating a new table each month would not be a good solution.

            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