style: Remove whitespace before :

This commit is contained in:
Aditya Hase 2019-07-11 18:08:46 +05:30
parent 6bbb726769
commit dfeb6bef8c

View File

@ -497,12 +497,12 @@ class QuickBooksMigrator(Document):
erpcustomer = frappe.get_doc({ erpcustomer = frappe.get_doc({
"doctype": "Customer", "doctype": "Customer",
"quickbooks_id": customer["Id"], "quickbooks_id": customer["Id"],
"customer_name" : encode_company_abbr(customer["DisplayName"], self.company), "customer_name": encode_company_abbr(customer["DisplayName"], self.company),
"customer_type" : "Individual", "customer_type": "Individual",
"customer_group" : "Commercial", "customer_group": "Commercial",
"default_currency": customer["CurrencyRef"]["value"], "default_currency": customer["CurrencyRef"]["value"],
"accounts": [{"company": self.company, "account": receivable_account}], "accounts": [{"company": self.company, "account": receivable_account}],
"territory" : "All Territories", "territory": "All Territories",
"company": self.company, "company": self.company,
}).insert() }).insert()
if "BillAddr" in customer: if "BillAddr" in customer:
@ -520,7 +520,7 @@ class QuickBooksMigrator(Document):
item_dict = { item_dict = {
"doctype": "Item", "doctype": "Item",
"quickbooks_id": item["Id"], "quickbooks_id": item["Id"],
"item_code" : encode_company_abbr(item["Name"], self.company), "item_code": encode_company_abbr(item["Name"], self.company),
"stock_uom": "Unit", "stock_uom": "Unit",
"is_stock_item": 0, "is_stock_item": 0,
"item_group": "All Item Groups", "item_group": "All Item Groups",
@ -548,8 +548,8 @@ class QuickBooksMigrator(Document):
erpsupplier = frappe.get_doc({ erpsupplier = frappe.get_doc({
"doctype": "Supplier", "doctype": "Supplier",
"quickbooks_id": vendor["Id"], "quickbooks_id": vendor["Id"],
"supplier_name" : encode_company_abbr(vendor["DisplayName"], self.company), "supplier_name": encode_company_abbr(vendor["DisplayName"], self.company),
"supplier_group" : "All Supplier Groups", "supplier_group": "All Supplier Groups",
"company": self.company, "company": self.company,
}).insert() }).insert()
if "BillAddr" in vendor: if "BillAddr" in vendor:
@ -1199,7 +1199,7 @@ class QuickBooksMigrator(Document):
def _create_address(self, entity, doctype, address, address_type): def _create_address(self, entity, doctype, address, address_type):
try : try:
if not frappe.db.exists({"doctype": "Address", "quickbooks_id": address["Id"]}): if not frappe.db.exists({"doctype": "Address", "quickbooks_id": address["Id"]}):
frappe.get_doc({ frappe.get_doc({
"doctype": "Address", "doctype": "Address",