Topic: cURL?
Hi Everyone, I wanted to ask a question to make sure that this isn't a horrible idea before I get started.
We would like to create some data entry forms. We are not going to modify or change the underlying structure of FA in any way, we are simply interested in data entry.
The rationale for this is to maximize efficiency. For example, we would like to create a "point of sale" form where a user could do the following:
-create a new customer
-create the purchase of this customer
-create an invoice and
-make a payment on that newly created invoice.
This would all be accomplished in one fell swoop (in one screen). We believe we can accomplish this using cURL. The method is going to be to post data (cURL, etc.) to the appropriate FA pages pages and allow FA to do the processing. I have already accomplished an FA login using PHP and cURL (which admittedly is a small feat).
My question is, would this best be done in the no-javascript-mode? For example, I noticed a posted variable called "_random" with a value of "811931.0167524144". It seems like this is being created by javascript...
As an example, this is a form that was sent in order add a vendor:
supplier_id=&_tabs_sel=settings&supp_name=SupplierName&supp_ref=AAA&gst_no=&website=&curr_code=USD&tax_group_id=1&supp_account_no=&contact=&phone=&phone2=&fax=&email=&rep_lang=&bank_account=&credit_limit=0.00&payment_terms=4&payable_account=2100&purchase_account=5010&payment_discount_account=5060&dimension_id=0&dimension2_id=0&address=&supp_address=¬es=&submit=Add%20New%20Supplier%20Details&popup=&_focus=supplier_id&_random=811931.0167524144
Which was posted to:
http://baseurl.com/account/purchasing/manage/suppliers.php?JsHttpRequest=0-xml
I plan on turning off javascript and digging into this tomorrow. Anything else I should know about? Is this a really bad idea? We are only going to implement this for a few vital functions and use the default FA interface for everything else...