Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Sage 50 SQL Payment matching to an Invoice or Invoice Item

Posted on 2014-09-12
8
660 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:Chris Michalczuk
  • 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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
 
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:Chris Michalczuk
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

808 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