fix codacy

This commit is contained in:
Shreya 2018-05-02 14:14:14 +05:30
parent ae0b31c31d
commit 27e4e244b6
2 changed files with 2 additions and 5 deletions

View File

@ -3,7 +3,6 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class AllowedToTransactWith(Document):

View File

@ -2,7 +2,7 @@
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, erpnext, json
import frappe, erpnext
import frappe.defaults
from frappe.utils import cint, flt
from frappe import _, msgprint, throw
@ -1043,7 +1043,7 @@ def get_inter_company_details(doc, doctype):
company = frappe.db.get_value("Supplier", {"name": doc.supplier}, "represents_company")
return {
"party": party,
"party": party,
"company": company
}
@ -1073,8 +1073,6 @@ def make_inter_company_purchase_invoice(source_name, target_doc=None):
return make_inter_company_invoice("Sales Invoice", source_name, target_doc)
def make_inter_company_invoice(doctype, source_name, target_doc=None):
from frappe.model.mapper import get_mapped_doc
if doctype == "Sales Invoice":
source_doc = frappe.get_doc("Sales Invoice", source_name)
target_doctype = "Purchase Invoice"