[fixes] setup wizard and other fixes related to cart
This commit is contained in:
committed by
Rushabh Mehta
parent
52dfc32eca
commit
06ad308ca1
@@ -174,10 +174,7 @@ def create_price_lists(args):
|
||||
"enabled": 1,
|
||||
"buying": 1 if pl_type == "Buying" else 0,
|
||||
"selling": 1 if pl_type == "Selling" else 0,
|
||||
"currency": args["currency"],
|
||||
"territories": [{
|
||||
"territory": get_root_of("Territory")
|
||||
}]
|
||||
"currency": args["currency"]
|
||||
}).insert()
|
||||
|
||||
def set_defaults(args):
|
||||
@@ -304,7 +301,7 @@ def get_fy_details(fy_start_date, fy_end_date):
|
||||
return fy
|
||||
|
||||
def create_taxes(args):
|
||||
|
||||
|
||||
for i in xrange(1,6):
|
||||
if args.get("tax_" + str(i)):
|
||||
# replace % in case someone also enters the % symbol
|
||||
@@ -324,7 +321,7 @@ def create_taxes(args):
|
||||
raise
|
||||
except RootNotEditable, e:
|
||||
pass
|
||||
|
||||
|
||||
def make_tax_head(args, i, tax_group, tax_rate):
|
||||
return frappe.get_doc({
|
||||
"doctype":"Account",
|
||||
|
||||
Reference in New Issue
Block a user