Hi Amin,
Fritzing.org looks nice :) Welcome to the ERPNext community.
Pushing Sales Orders is a pain right now because our current stable implementation has a lot of the calculations done in the client. We have a brand new code ready that does all calculations on the server and should be easy to push it (but its not yet stable).
If you have all your calculations done, then you can push it via web and JSON. We also had a python client that could do it at one point, but the scheme is really very simple.
All public methods in python can be called by the "cmd" form variable on "server.py".
1. You need to authenticate via: server.py?cmd=login&usr=[username]&pwd=[password]
You will get a return JSON and an session id in the cookie (sid) that you will have to send in all subsequent requests.
2. To push a sales order, you need to call
server.py?cmd=webnotes.model.client.save&doclist=[JSON]
doclist is a list of JSON objects with the main record and item records .. for example a Sales Order might look like
Some system fields are:
doctype: the DocType (representing the table)
__islocal: will tell the server to Insert instead of Update
parenttype: type of parent record
parentfield: the field name of this type in the parent (there may be multiple uses of this type)
idx: row index
You might have to play around a bit
If you share your client code, we can help you fix it!
best,
Rushabh