digithinkit / erpnext_foxycart_integration Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
In case for whatever reason, the app didn't capture the data while foxycart datafeed was called run a daily or hourly scheduler job to query foxycart for relevant order and check if all orders were captured else create them in erpnext
Installing the app with pip 10 fails:
ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/frappe/frappe-bench/apps/erpnext_foxycart_integration/setup.py", line 3, in <module> from pip.req import parse_requirements ImportError: No module named req
A fix is easy, as seen at https://stackoverflow.com/questions/25192794/no-module-named-pip-req . Changing the line to the following fixes the problem:
try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements
I can create a pull request for this.
Make a function to capture data from foxycart and convert it into a dict.
(foxycart might throw data in xml)
API for reference -> https://wiki.foxycart.com/v/2.0/transaction_xml_datafeed#
Write a test case with sample data to ensure everything works
Match or Create Customer
Make new Sales Order & Payment Entry
Update FoxyCart transaction id for reference
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.