Hi All!
From time to time I teach my self new things by picking a topic , research it and then try to implement it in a test environment.
I'm using a student version of an ERP (Sage 300 aka ACCPAC) .
I happen to know it 's back-end very well.
This is what I have done.
Created and order form using PHP.
A JSON based end-point that exposes a price list with Item, description, price and stock available form the inventory.
I'm able to add items to the order form which I get from the web service as opposed directly from it's MSSQL database.
I try to use AJAX as much as possible to minimize it from hitting the database too much. I think ive don a good job so far
The said order form currently saves the order in a MYSQL table. This is where I have a problem. The order does not yet exist in the ERP's database. If the customer had to select and item and there is 1 item left and he's taking his time to add other items to the order, some or other time someone else will snatch the item and offcoarse the ERP is not yet aware of this. By the time the order is sent to the ERP someone is not going to be happy. My thought is if the item wasnt available from the start the back order would have been avoided.
I dont know what's acceptable as far as live inventory values go.
So I'm asking the experienced. Should an Ecommerce front end be fully integrated as in when the item is selected and added to an order it should be committed ?
Or should I attempt to expose the actual order in the ERP to the web front end and then edit the order directly?
From time to time I teach my self new things by picking a topic , research it and then try to implement it in a test environment.
I'm using a student version of an ERP (Sage 300 aka ACCPAC) .
I happen to know it 's back-end very well.
This is what I have done.
Created and order form using PHP.
A JSON based end-point that exposes a price list with Item, description, price and stock available form the inventory.
I'm able to add items to the order form which I get from the web service as opposed directly from it's MSSQL database.
I try to use AJAX as much as possible to minimize it from hitting the database too much. I think ive don a good job so far
The said order form currently saves the order in a MYSQL table. This is where I have a problem. The order does not yet exist in the ERP's database. If the customer had to select and item and there is 1 item left and he's taking his time to add other items to the order, some or other time someone else will snatch the item and offcoarse the ERP is not yet aware of this. By the time the order is sent to the ERP someone is not going to be happy. My thought is if the item wasnt available from the start the back order would have been avoided.
I dont know what's acceptable as far as live inventory values go.
So I'm asking the experienced. Should an Ecommerce front end be fully integrated as in when the item is selected and added to an order it should be committed ?
Or should I attempt to expose the actual order in the ERP to the web front end and then edit the order directly?