Import to Sage Line 50 using Access

Hi

(Incidentally, I am a very good VBA programmer so I can handle the programming side).

I am currently writing a very simple and I mean a very simple access database with the following tables.:

Customers
Products
Invoices

I am generating the INVOICES in Access with a next available invoice No and then I would like to be able to make a call to a routine that will insert records into the INVOICE and INVOICE_ITEM table...

Does anybody have any information about how to achieve this or read an article that demonstrates this. ?

Thanks in Advance.
Kuldip Mond
 
Thanks John,

Does that mean you you are a SAGE developer :rolleyes:

Ok .... but from what I read so far, I am hearing that CSV imports are also possible ?

Could I export a CSV file for every invoice (or append) as I create in Access and then import them all up at the end of the day ?

Hey thanks for the speedy reply. Fastest repsonse in the west...:cool:

Kuldip
 
Upvote 0
Thanks John,

Does that mean you you are a SAGE developer :rolleyes:

Indeed so and was Senior Analyst Programmer at Sage before I left...


Ok .... but from what I read so far, I am hearing that CSV imports are also possible ?

Could I export a CSV file for every invoice (or append) as I create in Access and then import them all up at the end of the day ?

It is possible to import certain data via CSV file. Based on your original post, I assumed that you'd be looking to create invoices in the Invoicing module in Sage. If this is the case then the SDO is the only option as the import routines in Sage do not cater for this.

If, however, you are simply looking to import the financial results of the invoices then you can use CSV to import transactions to the Audit Trail in Sage.

John
 
Upvote 0
Thanks John, (you certainly know your stuff).;)

Oh ok... I see... then maybe I should go into more detail.

If I create an Invoice for a Customer with Accounting Ref CUST01 and the total for the invoice is £100 then I simply want to create the Invoice in Sage Line 50 and post the Debit/Credit transaction ?
(I do not need the individual items in the invoice in Sage just the total).

I hope I am saying that correctly.

** IF ** we had to go the other route of SDO is it very expensive code to have written ?

Thanks again in advance. Kuldip
 
Upvote 0
If I create an Invoice for a Customer with Accounting Ref CUST01 and the total for the invoice is £100 then I simply want to create the Invoice in Sage Line 50 and post the Debit/Credit transaction ?

If you simply want to post the transaction so that it appears on the customer account then that can be achieved using the built in CSV import routine. You add the invoice as a line in the import file and it will be created via the import routine. The same is true if you need to create a Customer account, again, this can be achieved using the import routine.

If, however, you wanted to create an invoice in the Invoicing module so it could be printed out in Sage then CSV is a non starter.

Up until v2010 of Sage 50, the import formats were fixed so your file had to be in the exact format that Sage expected. With v2010, import files can be 'mapped' during the import routine so the format is no longer as important, you only need to make sure that the pertinent details are in your CSV file somewhere.

** IF ** we had to go the other route of SDO is it very expensive code to have written ?

Not necessarily ;)

John
 
Upvote 0
Thanks again...

I shall ascertain tomorrow what exactly is required in Sage as you have kindly clarified. This will determin which course of action will be adopted.

I strongly think that they want the former of the two mentioned in your previous reply i.e. "post the transaction so that it appears on the customer account" as I recall seeing a screen that has a heading "Batch Customer Invoices". with the following fields

A/C
Date
Ref
Ex.Ref
Dept.
Project Ref
Details
Net
T/C
VAT

and distinctly recall then saying they want to do exactly what they do now by manually enter into the Batch Customer Invoices Screen but do this "automatically". Hmmm... I eagerly wait to see ...;)

So I trust it will be a posting rather then to create and then print an Invoice in SAGE via the Invoice Module.

Let me see what they say tomorrow.:)

Regards Kuldip.
 
Upvote 0
The import routine does create the same entries that you get if you enter an invoice via the Batch Customer Invoice option with one exception (which may or may not be an issue).

When you use the Batch Invoice screen to enter an invoice, if you enter two items that have the same date and reference, Sage will 'group' the two items together as if they are two lines on a single invoice so when you look at the customer account you see a single invoice for the total amount although you can 'drill down' to the individual items.

However, if you enter exactly the same items using the import routine, you end up with 2 distinct invoices appearing on the customer account.

Again, this is something that can be avoided using the SDO as it allows you to exactly duplicate the entry as it would show had it been entered rather than imported.

John
 
Upvote 0
Understood. Lets see what chips fall tomorrow. ;)

I am suspecting that the issues mentijoned would not be a problem... as "2 distinct invoices appearing on the customer account" is what they want ... but you never know ...

Thx Kuldip
 
Upvote 0

jt196

Free Member
Dec 3, 2007
12
0
Funnily enough I'm right in the middle of this too. Thanks a bunch for the info about the invoice import.

What about importing invoice details? Come to think of it, is it necessary? We sell a range of products, but if I'm keeping track of them in my Access database, do I need to enter the information into the Sage invoice ledger?

OK this brings up another question, what about postage? How does that go on the invoice upon import? Does it just get totted up with the rest, or does there have to be some extra information as the postage is under a different nominal code, right?
 
Upvote 0
What about importing invoice details? Come to think of it, is it necessary? We sell a range of products, but if I'm keeping track of them in my Access database, do I need to enter the information into the Sage invoice ledger?

If products are being tracked in the Access database then there is no need to do so in Sage so importing just the transactions will be fine.

OK this brings up another question, what about postage? How does that go on the invoice upon import? Does it just get totted up with the rest, or does there have to be some extra information as the postage is under a different nominal code, right?

As for postage, if you have an invoice with a single item on it and postage, your import file would look something like this:

"SI","ALANB001","4000",7,"22/04/2010","154","",8.33,"T1",1.25
"SI","ALANB001","4905",7,"22/04/2010","154","",1.50,"T9",0

Where the second line contains the details for the postage. Be aware, as I mentioned earlier, if you were to manually such an invoice into Sage, the two lines would be grouped together so a single invoice would appear on the customer account.

If you use the import option, the two lines would show up as seperate invoices on the customer account.

John
 
Last edited:
Upvote 0
John,

It is indeed the case that they only want to upload an Invoice total that will list againt their account. They currently manually upload using the "Batch Customer Invoices" screen so they simply want to automate this. So the CSV method will be surffice.

I am awaiting further details..

I was wondering is you would be available for pointers in case of any problems.

Thanks Kuldip
 
Upvote 0

jt196

Free Member
Dec 3, 2007
12
0
Aaah that's brilliant. One other thing I was thinking about - what about the invoice numbers? I take it they're generated by the Sage program as you import them?

This brings up the question of how to reconcile the numbers between the access program and Sage. It would probably be quite dangerous to have an auto-number field in Access and just hope that the figures managed to match up correctly...

How have you managed this in the past? Is it a case of getting to know the Sage system so well that you know the numbers are going to line up, or is it just that importing the invoices directly into it (bypassing the Invoice module) doesn't generate invoice numbers - the data is merely dates, figures and customers.

Thanking you in advance.
 
Upvote 0

jt196

Free Member
Dec 3, 2007
12
0
aaah ok, thanks again!

I'm going to be moving all the invoices from Sage to Access so I guess I'll set up the autonumber as the invoice numbers imported from Sage. Then as they start going back across to Sage if that Reference is the Sage autonumber then it doesn't need to coincide as long as it's in there. At the moment the reference is the external PO number, but I guess it doesn't matter too much if we move the system around a little...
 
Upvote 0

jt196

Free Member
Dec 3, 2007
12
0
Aaaaaaah now that's clear. I was unsure as to what the reference was. There's a field in the invoices in Sage where you can place the PO number of the customer - so I just assumed it was that. So thanks for that.

Actually what about the 'order' field - don't see that in there...

J
 
Upvote 0
There's a field in the invoices in Sage where you can place the PO number of the customer

That's when you enter an invoice in the Invoicing Module - if you enter an invoice using the Customer Batch Invoice routine (which is what the import routine effectively duplicates) that field is not available.

John
 
Upvote 0
I was wondering :D

When i create the database I am having a pretty major decision to make.

Owing to the design of the tables. I have one of two ways I can go.

I am creating a structure for shoe company and they have lots of shoe designs and many colours within a particular design of shoe.

a) I could have product_table (holds shoe designs) and a colours table and that way I can link colours to shoes. This will make the code probably a little more complicated than need be :

Product_Table
pro_style_code
pro_description
pro_usual_carton_qty
pro_default_unit_price

Colour_Table
col_style_code
col_colour

b) but the other option is have a Product_table and add an extra column to the table to store the colour. That was I will have 10 shoe lines for the same product_code with a different colour for each if you see what I mean.

Product_Table
pro_style_code
pro_colour_code
pro_description
pro_usual_carton_qty
pro_default_unit_price

What do you think ?

Thanks in advance Kuldip
 
  • Like
Reactions: johndon68
Upvote 0
Hi John,

I was just wondering if you might like to comment on the below specs...

www specialistwebdesign.com/access_invoice_stock.pdf
(replace space with dot)

Firstly, I am wondering what the overhall project would be - chargeable to a client.

If you feel you can perhaps comment on the database structure...
Its like a hybrid between an Invoicing system and Stock Management System.

This started out life as a Invoicing system with teh SAGE update but the client soon realised that they wanted a Stock Management System built into it so that when they invoice a buyer the stock level is adjusted.

If time is short just look at the last 4 pages of screen shots which are very draft indeed.

Thanks in Advance Kuldip
 
Upvote 0
D

Deleted member 74014

I am new to sage line 50. why do i have to clear the balances on my debtores and creditors control accounts after inputting opening balances of my suppliers and customers. can i enter opening balances of nominal ledger codes and bank accounts using journal
 
Upvote 0
Upvote 0
D

Deleted member 74014

thank you John. I posted some cash and carry purchases as bank payments as they were paid by visa debit. when doing my vat ,these hesebalances are not reconciled. the vat analysis shows N N on these entries
 
Upvote 0
thank you John. I posted some cash and carry purchases as bank payments as they were paid by visa debit. when doing my vat ,these hesebalances are not reconciled. the vat analysis shows N N on these entries

I take it these were entered by going to Bank -> Payments in which case, what tax code did you use?

John
 
Upvote 0

Latest Articles

Join UK Business Forums for free business advice