fix: codacy fixes

This commit is contained in:
Himanshu Warekar
2019-04-17 12:42:00 +05:30
parent 2b54cee4aa
commit 308ae1f155
4 changed files with 3 additions and 8 deletions

View File

@@ -2,7 +2,4 @@
// For license information, please see license.txt
frappe.ui.form.on('Fetch Payment Terms', {
refresh: function(frm) {
}
});

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 FetchPaymentTerms(Document):

View File

@@ -3,7 +3,6 @@
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestFetchPaymentTerms(unittest.TestCase):

View File

@@ -421,9 +421,9 @@ def make_purchase_invoice(source_name, target_doc=None):
if frappe.get_single("Fetch Payment Terms").fetch_payment_terms == 1:
fields["Payment Schedule"] = {
"doctype": "Payment Schedule",
"add_if_empty": True
}
"doctype": "Payment Schedule",
"add_if_empty": True
}
doc = get_mapped_doc("Purchase Order", source_name, fields, target_doc, postprocess)