Hey all,
Earlier I had started a thread (thread632-1168373) about the possiblity of integrating with an e-commerce website.
jazgeek, gave some helpful ideas - but I ended up trying to write my own integration class myself using PHP.
I have almost completed work on my integration class, however I have a question before I finalize it.
I am wondering the best way to go about adding a line item to an order (using SQL/GP stored procs).
Currently I have the script getting the Qty we have on hand for the item, and if we have enough it will allocate the item to the order (updates the IV00102 table, and the SOP10200 table), otherwise it places the items on backorder (SOP10200 table only at this point).
All orders entered through this system, automatically get placed on a 'Web_hold' for manual confirmation sake.
Should I not be manually allocating the items when the order is created? If not, what qty fields in SOP10200 (besides QUANTITY) should be utilized?
I realize backorder items should probably update the IV00102 table too, or should they not - seeing as the order is being placed on 'Web_hold'?
Thanks for the help - look for the source code coming soon!
Earlier I had started a thread (thread632-1168373) about the possiblity of integrating with an e-commerce website.
jazgeek, gave some helpful ideas - but I ended up trying to write my own integration class myself using PHP.
I have almost completed work on my integration class, however I have a question before I finalize it.
I am wondering the best way to go about adding a line item to an order (using SQL/GP stored procs).
Currently I have the script getting the Qty we have on hand for the item, and if we have enough it will allocate the item to the order (updates the IV00102 table, and the SOP10200 table), otherwise it places the items on backorder (SOP10200 table only at this point).
All orders entered through this system, automatically get placed on a 'Web_hold' for manual confirmation sake.
Should I not be manually allocating the items when the order is created? If not, what qty fields in SOP10200 (besides QUANTITY) should be utilized?
I realize backorder items should probably update the IV00102 table too, or should they not - seeing as the order is being placed on 'Web_hold'?
Thanks for the help - look for the source code coming soon!