mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: codacy fixes
This commit is contained in:
@@ -2,7 +2,4 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Fetch Payment Terms', {
|
frappe.ui.form.on('Fetch Payment Terms', {
|
||||||
refresh: function(frm) {
|
|
||||||
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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 FetchPaymentTerms(Document):
|
class FetchPaymentTerms(Document):
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
# See license.txt
|
# See license.txt
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import frappe
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
class TestFetchPaymentTerms(unittest.TestCase):
|
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:
|
if frappe.get_single("Fetch Payment Terms").fetch_payment_terms == 1:
|
||||||
fields["Payment Schedule"] = {
|
fields["Payment Schedule"] = {
|
||||||
"doctype": "Payment Schedule",
|
"doctype": "Payment Schedule",
|
||||||
"add_if_empty": True
|
"add_if_empty": True
|
||||||
}
|
}
|
||||||
|
|
||||||
doc = get_mapped_doc("Purchase Order", source_name, fields, target_doc, postprocess)
|
doc = get_mapped_doc("Purchase Order", source_name, fields, target_doc, postprocess)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user