mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-29 19:48:27 +00:00
fix: codacy fixes
This commit is contained in:
@@ -2,7 +2,4 @@
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.ui.form.on('Fetch Payment Terms', {
|
||||
refresh: function(frm) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
# See license.txt
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import frappe
|
||||
import unittest
|
||||
|
||||
class TestFetchPaymentTerms(unittest.TestCase):
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user