millennium.atrex
Website Database intergration
Thread Starter: Jimmy Li Started: 6/24/2008 12:46 PM UTC
Replies: 17
Website Database intergration

Hello,

We have a website and it's using it's own database. We are having our developers work on intergrating the atrex and our website database, so we'll hve realtime stock info, and no need to export and import.

I know all the info for the profucts are in the "code" table.

I'm hving them also write back to the atrex database on any new orders.

What our developers wants to know is the following:

1. Are their any other way of communicating with atrex dabasebase other than odbc driver.

2. What DBMS (database management system) is used in Atrex and is it available online

And when they write back the new orders into the "orders" section, is that only 1 table? or multiple table they must write to? I would need the E-mail address field has a unique field, if email exist, then check address and zip code, if they match, then use that customer, if Email does not exist, then create new customer.

 

tks.

Re: Website Database intergration
Jimmy,

1. Are their any other way of communicating with atrex dabasebase other than odbc driver.

No.

2. What DBMS (database management system) is used in Atrex and is it available online

DBISAM which is not an open-source DBMS.

And when they write back the new orders into the "orders" section, is that only 1 table? or multiple table they must write to? I would need the E-mail address field has a unique field, if email exist, then check address and zip code, if they match, then use that customer, if Email does not exist, then create new customer.

The tables required are ord, oritem, cust, and code.

Mark Culos
Atrex Support
Email: mark@atrex.com
Website: www.atrex.com
Re: Website Database intergration
Jimmy,

The tables required are ord, oritem, cust, and code.

You will also need to place an entry in the AR table as well for the order or you won't be able to edit or ship it later.

--  

---------------------------------------
 Terry Swiers
 Millennium Software, LLC
 http://www.1000years.com
 http://www.atrex.com

 Atrex Inventory Control/POS -
    Big business features without spending big business bucks!

Atrex Electronic Support Options:
 Atrex Knowledgebase: http://www.atrex.com/atrexkb.asp
 Email: mailto:support@atrex.com
 Newsgroup: news://news.1000years.com/millennium.atrex
 Fax: 1-925-829-1851
 Phone: 1-925-828-5892 (M-F, 9a-5p Pacific)
 ---------------------------------------
Re: Website Database intergration
Terry,

Is it too much to ask, you you can be a little more specific to exactly which table needs to write to?
and what needs to to the AR table? so i can let the web developers know..

Thank you very much..

Jimmy Li


<Terry Swiers> wrote in message news:358fa65e$2aed0262$e8cf@VPS182...
Jimmy,

> The tables required are ord, oritem, cust, and code.

You will also need to place an entry in the AR table as well for the order or you won't be able to edit or ship it later.

--  
---------------------------------------
Terry Swiers
Millennium Software, LLC
http://www.1000years.com
http://www.atrex.com

Atrex Inventory Control/POS -
   Big business features without spending big business bucks!

Atrex Electronic Support Options:
Atrex Knowledgebase: http://www.atrex.com/atrexkb.asp
Email: mailto:support@atrex.com
Newsgroup: news://news.1000years.com/millennium.atrex
Fax: 1-925-829-1851
Phone: 1-925-828-5892 (M-F, 9a-5p Pacific)
---------------------------------------  
Re: Website Database intergration
Jimmy,

Is it too much to ask, you you can be a little more specific to exactly which table needs to write to?
and what needs to to the AR table? so i can let the web developers know..

I can give you a quick summary of what you need to do.  Beyond that, we'll need to open up a developer support contract as this is beyond the scope of normal Atrex support.

For each order you import, you need to do the following:

1. Create an entry in the ord table.  Note that you will need to retrieve the last order number and increment it before doing the insert.  Also note that you will need to set the custnum field to match an existing customer entry in the cust table.  If the customer does not already exist, you will need to create one and increment the customer number.

2. Create an entry in the oritem table for each item.  Make sure that you set the order number that you assigned the order in step 1.  You also must ensure that the stock code field is set to an exact match of an item already in the code table.  If the item does not exist in the code table, you MUST create it.

3. Increment the code.allocated field for each item quantity on the order.

4. Add an entry in the AR table.  Set the transtype to 2 and then set the order number to the number assigned in step 1.  Also, if the customer can potentially carry a balance, you will need to retrieve the previous record for the customer and roll the customer balance information (ar.curbal) forward to the new AR record.


The other option is that we can create a custom import routine for you that will handle all of the above.  What we would need from your web developers is a web based script (or scripts) that we can call that will do the following functions:

1. Retrieve a list of new orders and return the list in XML.

2. Retreive the contents of a specific order in XML.

3. Set a new order to retrieved so that it will fall off the list retrieved in step 1.

These types of import utilities usually take about 3 to 4 hours of development time ($300 to $400).   This can end up saving you a lot of development time on your end since all you have to develop is the extraction of the order information from the web site, and we handle all of the complexity of adding the order, customer, and stock code information on the Atrex side of things.

--  

---------------------------------------
 Terry Swiers
 Millennium Software, LLC
 http://www.1000years.com
 http://www.atrex.com

 Atrex Inventory Control/POS -
    Big business features without spending big business bucks!

Atrex Electronic Support Options:
 Atrex Knowledgebase: http://www.atrex.com/atrexkb.asp
 Email: mailto:support@atrex.com
 Newsgroup: news://news.1000years.com/millennium.atrex
 Fax: 1-925-829-1851
 Phone: 1-925-828-5892 (M-F, 9a-5p Pacific)
 ---------------------------------------
Re: Website Database intergration

Terry,

If you develope the import routine, can it write back the info back to the web? once the order is shipped, i would like to to update the tracking # on the website, and change the status to "Complete"? if that is doable, then i think it'l easier to go with what you suggested.

 

tks.

Jimmy Li
        

Re: Website Database intergration


Terry,

I just thought of the write-back.. you can write directly to the database, using SQl queries, that what I do no..

since all we have to do is match the order number. Order # XXX, change the status to "C" and add tracking # into a field.

I think that's pretty simple, I'll ask the web developers to check if they can create that script.

 

tks.

Re: Website Database intergration
Terry,
 
X-cart wants to know this so they can make the script:
 

-----------------

OK. By I need XML DTD (Document Type Definition) for communication. It is the documnent which states the structure and types of possible values. I guess you can request this from Atrex developers. "

-----------------

 

Thank you,

Jimmy Li

 

<Jimmy Li> wrote in message news:6dc75db$165cfb00$e8d3@VPS182...


Terry,

I just thought of the write-back.. you can write directly to the database, using SQl queries, that what I do no..

since all we have to do is match the order number. Order # XXX, change the status to "C" and add tracking # into a field.

I think that's pretty simple, I'll ask the web developers to check if they can create that script.

 

tks.

Re: Website Database intergration
Terry,
 
have you come with the details for this yet?
 
tks.
<Jimmy Li> wrote in message news:6522cca3$507ca74$e8cb@VPS182...

Hello,

We have a website and it's using it's own database. We are having our developers work on intergrating the atrex and our website database, so we'll hve realtime stock info, and no need to export and import.

I know all the info for the profucts are in the "code" table.

I'm hving them also write back to the atrex database on any new orders.

What our developers wants to know is the following:

1. Are their any other way of communicating with atrex dabasebase other than odbc driver.

2. What DBMS (database management system) is used in Atrex and is it available online

And when they write back the new orders into the "orders" section, is that only 1 table? or multiple table they must write to? I would need the E-mail address field has a unique field, if email exist, then check address and zip code, if they match, then use that customer, if Email does not exist, then create new customer.

 

tks.

Re: Website Database intergration
Terry,

Thank you for these pointers, with your pointers we have manage to make something "almost" working now. we still have some issues to work out.
When putting an entry in the AR table, is all fields required? we are only entering the ones with values (subtotal, total, tax (if exist), customer #, transtype, others are lefted out. it seems to work. BUT i don't know if it will cause any problems if i dont 'enter "0" for the other fields.

So, do are the "0" required for other fields?

tks.
Jimmy


<Terry Swiers> wrote in message news:9cc3512$3d25591d$e8d1@VPS182...
Jimmy,

> Is it too much to ask, you you can be a little more specific to exactly > which table needs to write to?
> and what needs to to the AR table? so i can let the web developers know..

I can give you a quick summary of what you need to do.  Beyond that, we'll need to open up a developer support contract as this is beyond the scope of normal Atrex support.

For each order you import, you need to do the following:

1. Create an entry in the ord table.  Note that you will need to retrieve the last order number and increment it before doing the insert.  Also note that you will need to set the custnum field to match an existing customer entry in the cust table.  If the customer does not already exist, you will need to create one and increment the customer number.

2. Create an entry in the oritem table for each item.  Make sure that you set the order number that you assigned the order in step 1.  You also must ensure that the stock code field is set to an exact match of an item already in the code table.  If the item does not exist in the code table, you MUST create it.

3. Increment the code.allocated field for each item quantity on the order.

4. Add an entry in the AR table.  Set the transtype to 2 and then set the order number to the number assigned in step 1.  Also, if the customer can potentially carry a balance, you will need to retrieve the previous record for the customer and roll the customer balance information (ar.curbal) forward to the new AR record.


The other option is that we can create a custom import routine for you that will handle all of the above.  What we would need from your web developers is a web based script (or scripts) that we can call that will do the following functions:

1. Retrieve a list of new orders and return the list in XML.

2. Retreive the contents of a specific order in XML.

3. Set a new order to retrieved so that it will fall off the list retrieved in step 1.

These types of import utilities usually take about 3 to 4 hours of development time ($300 to $400).   This can end up saving you a lot of development time on your end since all you have to develop is the extraction of the order information from the web site, and we handle all of the complexity of adding the order, customer, and stock code information on the Atrex side of things.

--  
---------------------------------------
Terry Swiers
Millennium Software, LLC
http://www.1000years.com
http://www.atrex.com

Atrex Inventory Control/POS -
   Big business features without spending big business bucks!

Atrex Electronic Support Options:
Atrex Knowledgebase: http://www.atrex.com/atrexkb.asp
Email: mailto:support@atrex.com
Newsgroup: news://news.1000years.com/millennium.atrex
Fax: 1-925-829-1851
Phone: 1-925-828-5892 (M-F, 9a-5p Pacific)
---------------------------------------  


Re: Website Database intergration
Jimmy,

Thank you for these pointers, with your pointers we have manage to make something "almost" working now. we still have some issues to work out.
When putting an entry in the AR table, is all fields required? we are only entering the ones with values (subtotal, total, tax (if exist), customer #, transtype, others are lefted out. it seems to work. BUT i don't know if it will cause any problems if i dont 'enter "0" for the other fields.

Numeric fields will automatically default to zero if you don't enter anything into them.

In addition to creating the entry within the AR table, the program updating the AR table is responsible for retrieving the last record in the AR table for the customer account (based upon custnum) and transferring the value in the CURBAL field to the PREVBAL column of the new record.  In addition, you must take the value in the BALANCE field (which contains the balance for the current transaction) plus the PREVBAL value to update the CURBAL field, which is the customer's running balance.


--  

---------------------------------------
 Terry Swiers
 Millennium Software, LLC
 http://www.1000years.com
 http://www.atrex.com

 Atrex Inventory Control/POS -
    Big business features without spending big business bucks!

Atrex Electronic Support Options:
 Atrex Knowledgebase: http://www.atrex.com/atrexkb.asp
 Email: mailto:support@atrex.com
 Newsgroup: news://news.1000years.com/millennium.atrex
 Fax: 1-925-829-1851
 Phone: 1-925-828-5892 (M-F, 9a-5p Pacific)
 ---------------------------------------
Re: Website Database intergration

Jimmy,

 

Was x-cart able to come up with something that worked for this?  If so we would also be VERY interested in the integration if you could share any of the details.

 

Thanks,

 

Todd

Re: Website Database intergration
Todd,
 
 
X-cart is not part of this.. THEY wanted WAY too much for this to be done. and it would take too long.
 
I'm funding this myself have have a friend developing this. If you are interested we could share the cost. :-)
 
it saves me soooo much time.. currently, we have som AR table issues that needs to be addressed. 
This is our goal.
This tool should:
 
Download all "Processed" Orders on X-cart.
Insert into Orders with all appropried info, (Shipping methods and such)
 
We would then manually go into Atrex and Ship all of them. (basically prints out invoices)
pack and ship.
 
As for the tracking #s.
 
Our shipping software (Endicia for USPS, and Fedex for Fedex) they both can write back, but only to one place. So we're still figuring out how to write back to 2 places at the same time so i'll update the X-cart site with tracking # and status...
 
 
Jimmy Li
 
<Todd Patterson> wrote in message news:6d6880a7$6d772643$1ace@VPS182...

Jimmy,

 

Was x-cart able to come up with something that worked for this?  If so we would also be VERY interested in the integration if you could share any of the details.

 

Thanks,

 

Todd

Re: Website Database intergration
Terry,
 
When i create an Order in Atrex, i cannot seem to find that entry in the AR table. I see the record grew by 1 or 2 not sure. BUT, i cannot find that customer for that order # info.
 
But, when I ship the order, the AR entries gets created. Same goes with the program we developed. only updated the AR table when i SHIP the order in AtREX.. is this the proper procedure? or AM i messing up something. and I notice that almost all of the entries in the AR has 2 of each transaction. is that what it suppose to be?
 
tks. for your help..
P.S> i would have let you guys develop this for me. but i'm afraid everytime i wanted to change something it would be inconvienient. that's Why i have someone else local doing this for me. Not that i didnt 'want to pay you  guys.
 
 
 
Re: Website Database intergration
Jimmy,

When i create an Order in Atrex, i cannot seem to find that entry in the AR table. I see the record grew by 1 or 2 not sure. BUT, i cannot find that customer for that order # info.

You may need to refresh your query.  It will be inserted with the same transaction number and a transtype of 2.

But, when I ship the order, the AR entries gets created.

Nope.  An AR entry is created when you create the order and an entry for the resulting invoice when you ship it is created at ship time.

--  

---------------------------------------
 Terry Swiers
 Millennium Software, LLC
 http://www.1000years.com
 http://www.atrex.com

 Atrex Inventory Control/POS -
    Big business features without spending big business bucks!

Atrex Electronic Support Options:
 Atrex Knowledgebase: http://www.atrex.com/atrexkb.asp
 Email: mailto:support@atrex.com
 Newsgroup: news://news.1000years.com/millennium.atrex
 Fax: 1-925-829-1851
 Phone: 1-925-828-5892 (M-F, 9a-5p Pacific)
 ---------------------------------------
Re: Website Database intergration
Terry,
 
Nevermind.. i do see that the AR gets an entry when the order is created..
my program's AR entry is not complete I do not have all the fields inserted. So i will work on that next sunday when my program guy comes in.
 
As for the fields. the other fields are almost self explainatory. What is the Sequence Number? they are not unique. my program is not updating the AR table when the order is created. even though we programmed it to do so, but left the sequencenumber field blank.. so i think could be the program.
 
when when I ship the order that my program entered, it's created 2 entries of the same thing in the AR table.
 
any help would be appreciated.
 
 
<Jimmy Li> wrote in message news:3bf505f3$1ae72e69$1ac8@VPS182...
Terry,
 
When i create an Order in Atrex, i cannot seem to find that entry in the AR table. I see the record grew by 1 or 2 not sure. BUT, i cannot find that customer for that order # info.
 
But, when I ship the order, the AR entries gets created. Same goes with the program we developed. only updated the AR table when i SHIP the order in AtREX.. is this the proper procedure? or AM i messing up something. and I notice that almost all of the entries in the AR has 2 of each transaction. is that what it suppose to be?
 
tks. for your help..
P.S> i would have let you guys develop this for me. but i'm afraid everytime i wanted to change something it would be inconvienient. that's Why i have someone else local doing this for me. Not that i didnt 'want to pay you  guys.
 
 
 
Re: Website Database intergration

Jimmy,

 

We would be very interested in discussing this with you.  Drop me an email todd@truckloadsalesonline.com or give me a call at the office tomorrows (479) 641-1133.

 

We use xcart and have been having to re-key everything in....lets talk. :)

 

Todd

Re: Website Database intergration
Terry,

The Utility to import From X-cart database Directly into Atrex Orders are now working. AR and everything seems to be correct. Thanks for your Help.

Thank you,
Jimmy Li


<Terry Swiers> wrote in message news:5392fbd3$2bc20557$1acd@VPS182...
Jimmy,

> Thank you for these pointers, with your pointers we have manage to make > something "almost" working now. we still have some issues to work out.
> When putting an entry in the AR table, is all fields required? we are > only entering the ones with values (subtotal, total, tax (if exist), > customer #, transtype, others are lefted out. it seems to work. BUT i > don't know if it will cause any problems if i dont 'enter "0" for the > other fields.

Numeric fields will automatically default to zero if you don't enter anything into them.

In addition to creating the entry within the AR table, the program updating the AR table is responsible for retrieving the last record in the AR table for the customer account (based upon custnum) and transferring the value in the CURBAL field to the PREVBAL column of the new record.  In addition, you must take the value in the BALANCE field (which contains the balance for the current transaction) plus the PREVBAL value to update the CURBAL field, which is the customer's running balance.


--  
---------------------------------------
Terry Swiers
Millennium Software, LLC
http://www.1000years.com
http://www.atrex.com

Atrex Inventory Control/POS -
   Big business features without spending big business bucks!

Atrex Electronic Support Options:
Atrex Knowledgebase: http://www.atrex.com/atrexkb.asp
Email: mailto:support@atrex.com
Newsgroup: news://news.1000years.com/millennium.atrex
Fax: 1-925-829-1851
Phone: 1-925-828-5892 (M-F, 9a-5p Pacific)
---------------------------------------