mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
fix codacy
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user