Topic: Import csv or xml or text file in Bnaking en General Ledger

is the following possible ?

i would like to import my bankaccounts instead of manually data entry of them

Re: Import csv or xml or text file in Bnaking en General Ledger

No, I don't think there is an extension that can do that at present.

/Joe

Re: Import csv or xml or text file in Bnaking en General Ledger

I'm just starting with frontaccounting but I have been using mysql for years. You don't make it clear whether you want to import just a couple of bank accounts, or a large number of bank account transactions.  You can probably do some bank accounts, but NOT the transactions.

You will also need a little experience with mysql tables.   
This is definitely a DBF experience:   DO BACKUP FIRST!

Export your data from whereever, to a spreadsheet ( libreoffice-calc, excel etc).
In mysql, use 'describe table bank_accounts;'  (or bank_trans) to get  a list of the table columns and data-types associated with those columns.

Adjust your spreadsheet accordingly, by adding/deleting columns and formatting them as neccessary.
Export from the spreadsheet as, say 'export.csv'.
Edit the csv to remove the header line and any blank data lines which the export added.

Then, in mysql:
'load data local infile 'export.csv' into table bank_accounts  fields terminated by ','
enclosed by '"' lines terminated by '\n'
(account_code, account_type,bank_account_name,bank_account_number, ...(other fields)...,inactive);'

(that's all one line, btw) The enclosed by and lines terminated by are actually optional but take care of columns with double-quotes.

From a quick glance, the bank accounts table is a reasonably standalone reference table. so this would load the data. Fine for database use, but not so much for accounting. The id and and a couple of other fields are keys referenced by other tables, which almost assuredly DO NOT MATCH UP in FA with what you are exporting from. So you might get away with it, for the bank accounts data but NOT for transactions.

Loading the bank account data, instead of re-typing it, will probably work for setup. But if you want it import a bunch of transactions, then you would have to do the same sort of adjusting, for EVERY table which any transaction 'talks' to. That could include supplier transactions, tax transactions, sales orders....etc.

The only way to track that would probably be to start with a no-transactions database, create the bank accounts, and enter one of each type of bank transaction, credit and debit (creating suppliers, customers etc. as you go) and then examining the tables to see what went where.

And the id's will all likely change. It CAN be done, but it is not likely to be easy.

I'm presently loading an Opencart instance and creating some 475 odd categories and (ATM) 6800 product entries...going for 15,000 plus. I have what are basically csv files, and I create insert statements in a sql file. It ain't easy.




Last time I asked about something like this, my more-IT-aware friend scribbled a little map for me. The map for this had a big section marked "Here be dragons!"

Re: Import csv or xml or text file in Bnaking en General Ledger

Here is a simple way to migrate any data into FA, for example:

Import of huge number of Bank Accounts.

1. Take a sql dump (SQL1) of the data only of your existing FA database - no need for the schema. Do this while being logged into FA at the Bank Account data entry form with no other users logged in.

2. Enter one bank account manually into FA.

3. Take another sql dump (SQL2) of the data only of the same database.

4. Now observe the difference between the two SQL dumps - SQL1 and SQL2.

5. Make a set of insert / update statements (SQLsynch) that will simulate the data synch from SQL1 to SQL2.

6. Import the CSV of you bank accounts into some table schema that has all the relevant data for SQLsynch statements.

7. Using SQL statements or Excel CONCATENATE formulae, create a set of SQLsynch statements for the whole set of bank accounts.

8. Execute this newly created SQLsynch statements set in the database.

Viola! If all went well, you've managed to import the whole set of bank accounts into FA!

Now make a php script to acquire the CSV from your source and populate the current version of FA and submit it to the project so that others will benefit from the migratory effort.

SQLyog Ultimate has a data synch wizard that will make the SQLsynch statement generation a breeze.

Re: Import csv or xml or text file in Bnaking en General Ledger

Thnx guys for the reaction but i a not a SQL guru  i am just a bookkeeper/administrator

Other software do have a module called XML for example Exact Globe

Re: Import csv or xml or text file in Bnaking en General Ledger

Contact the consultants in the Wiki for custom interface scripts.

Re: Import csv or xml or text file in Bnaking en General Ledger

Please may I have help with Import Multiple Journal Entry / Deposits / Payments?
Is this a csv import?
If it is, then what is the format of the csv file for each of the above entry types?

(To find the format for inventory items was easy as there is a facility to export to csv which then provides me with the format to import.  It works really well)

Many thanks
Mark

Re: Import csv or xml or text file in Bnaking en General Ledger

Refer documentation for the extension.