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 # For license information, please see license.txt
from __future__ import unicode_literals from __future__ import unicode_literals
import frappe
from frappe.model.document import Document from frappe.model.document import Document
class AllowedToTransactWith(Document): class AllowedToTransactWith(Document):

View File

@ -2,7 +2,7 @@
# License: GNU General Public License v3. See license.txt # License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals from __future__ import unicode_literals
import frappe, erpnext, json import frappe, erpnext
import frappe.defaults import frappe.defaults
from frappe.utils import cint, flt from frappe.utils import cint, flt
from frappe import _, msgprint, throw from frappe import _, msgprint, throw
@ -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) return make_inter_company_invoice("Sales Invoice", source_name, target_doc)
def make_inter_company_invoice(doctype, source_name, target_doc=None): def make_inter_company_invoice(doctype, source_name, target_doc=None):
from frappe.model.mapper import get_mapped_doc
if doctype == "Sales Invoice": if doctype == "Sales Invoice":
source_doc = frappe.get_doc("Sales Invoice", source_name) source_doc = frappe.get_doc("Sales Invoice", source_name)
target_doctype = "Purchase Invoice" target_doctype = "Purchase Invoice"