Solved

Sage 50 SQL Payment matching to an Invoice or Invoice Item

Posted on 2014-09-12
8
633 Views
Last Modified: 2014-10-27
I want to extract client payments and link these to lines in the invoice_item table to show date paid and amount paid. What fields tables can I use to link these

 

I have audit_header, audit_usage, audit_split, invoice , invoice_item extracted from sage50 into a sql database - any ideas !
0
Comment
Question by:chrismichalczuk
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 26

Expert Comment

by:Nick67
ID: 40320511
Don't waste your effort.  Sage makes no attempt to keep your efforts from being wasted when they push through their updates.  The tables are a swamp.  There's no relationships defined at the db level and documentation is non existent.

If you want to do this, you must convince your outfit to switch to an accounting package that is supportive of third-party extensibility.  Sage 50 ain't it.
0
 
LVL 23

Expert Comment

by:Racim BOUDJAKDJI
ID: 40321480
This is not really a SQL Server question but rather a SAGE question.  I suggest you extract a list of tables and send it to SAGE support to answer your question.  To extract the list of the tables, use the sys.objects view.  Hope this helps.
0
 
LVL 10

Expert Comment

by:Bruce Denney
ID: 40322956
Here is the deal...

The invoice Item table is not linked to the Audit Split table so you can't do what you are trying.

But perhaps you do not want to do what you have said.

The Audit Split is the definitive financial record, so perhaps you do not need to do that extra link to the invoice item table, you could just do it at the audit split level.

You can link from the audit header to the invoice but not the items.

Conceptually you could match the description on the audit splits and match them to the invoice items, but really it is a lot of work for nothing.  The splits are the core transactions, you can have additional things in splits that matchoff but are not on invoices at all, eg interest charges, late payments fees, write offs.  So even at an accounting level matching to invoice items is not logical.
0
 
LVL 23

Expert Comment

by:Racim BOUDJAKDJI
ID: 40322984
Advice: do not try to retro engineer SAGE.  These are among the most poorly designed databases I have seen.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 26

Expert Comment

by:Nick67
ID: 40323336
"I have audit_header, audit_usage, audit_split, invoice , invoice_item extracted from sage50 into a sql database"
So you've stuck a fork into the MySQL monstrosity that is the Sage 50 engine these days.  When I was poking that bear it was still a renamed Access MDB file, but accessing the data isn't stupidly difficult.  But you've seen that the most table names are still 8 characters long, and you've seen that there are no relationships defined at the db level between the tables.  I phoned Sage about obtaining documentation, the short answer was they wanted about $11000 and for me to put a Sage partner on retainer.  And none of that guaranteed anything.  If their twice-yearly updates broke my stuff, tough-titty said the kitty.

Sage has facilities to export to Excel.  That's about the only useful facility that you're going to get.  Upgrade to ACCPAC, and hire a partner, or migrate to something else like Peachtree or Great Plains.

The only thing enterprise about Sage 50 Quantum Enterprise -- which is what our accountants use -- is the Enterprise name.  Let's not mention EFT.
0
 
LVL 10

Expert Comment

by:Bruce Denney
ID: 40327564
Which sage 50 are you talking about?  Is the the Rest of the world version-UK/CAN or US?
0
 

Author Comment

by:chrismichalczuk
ID: 40341562
I've got the data extracted but don't know the joins correctly to link a payment against an invoice_item line
0
 
LVL 10

Accepted Solution

by:
Bruce Denney earned 500 total points
ID: 40341721
The links are from Audit_Split to Audit Usage to Audit Split

you link AUDIT_SPLIT.TRAN_NUMBER to AUDIT_USAGE.SPLIT_NUMBER and AUDIT_USAGE.SPLIT_CROSSREF TO AUDIT_SPLIT.TRAN_NUMBER
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now