Solved

How to add records into invoice.dta data file of sage from VB6

Posted on 2006-06-12
5
559 Views
Last Modified: 2012-06-27
I need to open data file with extension DTA, which is actually a data file of sage accounting software. I have been searching, if I could find any way to Add data into Invoice table of sage from VB but I could not find.
I thought might be is there any other way could open directly the data file to add data into Invoice file, OR if you know any other way I could add data into sage database.
I know ODBC data connection is read only, and to use sage data object I need registeration key which could be bought from sage for £1500. I don't want to spend that much money.

Hope fully anybody will be able to help me in this matter.

Regards

 
0
Comment
Question by:Shahbazomeara
  • 2
5 Comments
 
LVL 31

Expert Comment

by:moorhouselondon
ID: 16898385
You don't need to is the ideal answer.  Think of it the other way round (which is the way I do it in practice).  Suppose you have a customer who wants extra info which is not in Sage.  Have separate tables which contain the info you want, when you print out an invoice you do it from your data, adding in the bits you want from the Sage data.  The resulting invoice is contained within your program, not in Sage.
0
 

Author Comment

by:Shahbazomeara
ID: 16901019
Thanks for your reply,

I will try to explain you what I need to do.
I have developed a software for Travel Agents which stores and print Invoices. Most of the travel agents who use my software they use Sage Instant Accounting software to manage their accounts, Its mean they will print invoice on my software and manaully enter the invoice information into sage to do posting to all relevant accounts.

That's why to reduce the manual work I am looking at the ways to import invoice information to sage.

If you could help me in this matter, I will be very greatful.

regards
0
 
LVL 31

Accepted Solution

by:
moorhouselondon earned 500 total points
ID: 16906013
The best way to do this is for your program to create a CSV posting file with the following fields, in the following order:-

CSV File Structures (Audit Trail Transactions)
-----------------------------------------------------
 
Transaction Type  SI = Sales Invoice
SI
 
Sales Ledger account code
TRAVAGNT

Nominal Code
4000
 
Department Number
0
 
Transaction Date
14/06/2006
 
Transaction (Invoice) Reference
Invoice Number

Transaction Details
Narrative

Net Amount
100.00
 
Tax Code  - Standard Rated =T1
T1

Tax Amount
17.50

Extra Reference - leave blank

-----
(Transcribed/amended from Sage's Help)

Use File, Import, Audit Trail Transactions, in Sage then browse to the import file (or you could make sure your program plonks the file into the directory that Sage expects to find it).  If there's anything structurally wrong with the file then the whole file will be rejected.  It does two passes - one to check the structure, two brings in the data.  Once in the Audit trail it can be reported upon, and will appear on VAT reports (if running standard VAT - not cash accounting)

0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

778 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