Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sage 50 SQL Payment matching to an Invoice or Invoice Item

Posted on 2014-09-12
8
Medium Priority
?
763 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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
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 1000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

926 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