Skip to content

Commit

Permalink
fix: order creation (frappe#198) (frappe#199)
Browse files Browse the repository at this point in the history
(cherry picked from commit 943da19)

Co-authored-by: Nihantra C. Patel <[email protected]>
  • Loading branch information
2 people authored and rampasan committed Sep 4, 2024
1 parent 943da19 commit db12fca
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
18 changes: 18 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
include MANIFEST.in
include requirements.txt
include *.json
include *.md
include *.py
include *.txt
recursive-include webshop *.css
recursive-include webshop *.csv
recursive-include webshop *.html
recursive-include webshop *.ico
recursive-include webshop *.js
recursive-include webshop *.json
recursive-include webshop *.md
recursive-include webshop *.png
recursive-include webshop *.py
recursive-include webshop *.svg
recursive-include webshop *.txt
recursive-exclude webshop *.pyc
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# frappe -- https://github.com/frappe/frappe is installed via 'bench init'
19 changes: 19 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from setuptools import setup, find_packages

with open("requirements.txt") as f:
install_requires = f.read().strip().split("\n")

# get version from __version__ variable in webshop/__init__.py
from webshop import __version__ as version

setup(
name="webshop",
version=version,
description="Open Source eCommerce Platform",
author="Frappe Technologies Pvt. Ltd.",
author_email="[email protected]",
packages=find_packages(),
zip_safe=False,
include_package_data=True,
install_requires=install_requires
)
2 changes: 1 addition & 1 deletion webshop/webshop/shopping_cart/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def place_order():

sales_order = frappe.get_doc(
_make_sales_order(
quotation.name, ignore_permissions=True
quotation.name, customer_group=customer_group, ignore_permissions=True
)
)
sales_order.payment_schedule = []
Expand Down

0 comments on commit db12fca

Please sign in to comment.