Browse Source

chore: mass trailing whitespace and EOF fixes

develop
Ankush Menat 3 years ago
parent
commit
4551d7d602
No known key found for this signature in database GPG Key ID: 8EA82E09BBD13AAF
  1. 2
      erpnext/accounts/deferred_revenue.py
  2. 2
      erpnext/accounts/doctype/accounting_dimension/test_accounting_dimension.py
  3. 1
      erpnext/accounts/doctype/bank_transaction/bank_transaction.py
  4. 2
      erpnext/accounts/doctype/cash_flow_mapping/cash_flow_mapping.py
  5. 3
      erpnext/accounts/doctype/cost_center/test_cost_center.py
  6. 3
      erpnext/accounts/doctype/coupon_code/test_coupon_code.py
  7. 1
      erpnext/accounts/doctype/mode_of_payment/mode_of_payment.py
  8. 1
      erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py
  9. 1
      erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py
  10. 1
      erpnext/accounts/doctype/pricing_rule/tests/test_pricing_rule.js
  11. 1
      erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.js
  12. 1
      erpnext/accounts/doctype/purchase_taxes_and_charges_template/test_purchase_taxes_and_charges_template.js
  13. 1
      erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice.js
  14. 1
      erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_margin.js
  15. 1
      erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_payment.js
  16. 1
      erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_payment_request.js
  17. 1
      erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_serialize_item.js
  18. 1
      erpnext/accounts/doctype/sales_taxes_and_charges_template/test_sales_taxes_and_charges_template.js
  19. 1
      erpnext/accounts/doctype/shipping_rule/test_shipping_rule.js
  20. 1
      erpnext/accounts/doctype/shipping_rule/tests/test_shipping_rule_for_buying.js
  21. 2
      erpnext/accounts/doctype/subscription/test_subscription.py
  22. 1
      erpnext/accounts/print_format/payment_receipt_voucher/payment_receipt_voucher.html
  23. 5
      erpnext/accounts/report/account_balance/test_account_balance.py
  24. 1
      erpnext/accounts/report/accounts_payable/accounts_payable.js
  25. 1
      erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.js
  26. 1
      erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.py
  27. 1
      erpnext/accounts/report/accounts_receivable/accounts_receivable.js
  28. 1
      erpnext/accounts/report/accounts_receivable/test_accounts_receivable.py
  29. 1
      erpnext/accounts/report/budget_variance_report/budget_variance_report.js
  30. 1
      erpnext/accounts/report/budget_variance_report/budget_variance_report.py
  31. 1
      erpnext/accounts/report/general_ledger/general_ledger.js
  32. 4
      erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py
  33. 1
      erpnext/accounts/report/sales_register/sales_register.js
  34. 3
      erpnext/accounts/report/trial_balance/trial_balance.js
  35. 1
      erpnext/agriculture/doctype/disease/test_disease.js
  36. 1
      erpnext/assets/doctype/asset_repair/asset_repair_list.js
  37. 2
      erpnext/buying/doctype/supplier_scorecard/supplier_scorecard.js
  38. 1
      erpnext/buying/doctype/supplier_scorecard/test_supplier_scorecard.py
  39. 1
      erpnext/buying/doctype/supplier_scorecard_period/supplier_scorecard_period.py
  40. 1
      erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py
  41. 1
      erpnext/buying/utils.py
  42. 1
      erpnext/controllers/item_variant.py
  43. 1
      erpnext/crm/doctype/appointment/appointment.py
  44. 1
      erpnext/crm/report/campaign_efficiency/campaign_efficiency.js
  45. 2
      erpnext/crm/report/lead_conversion_time/lead_conversion_time.js
  46. 1
      erpnext/crm/report/lead_details/lead_details.py
  47. 4
      erpnext/education/doctype/assessment_result/assessment_result.py
  48. 1
      erpnext/education/doctype/assessment_result/test_assessment_result.py
  49. 3
      erpnext/education/doctype/course_enrollment/test_course_enrollment.py
  50. 1
      erpnext/education/doctype/course_schedule/course_schedule.py
  51. 1
      erpnext/education/doctype/program_enrollment/program_enrollment.py
  52. 1
      erpnext/education/doctype/student_group/student_group.py
  53. 1
      erpnext/education/report/program_wise_fee_collection/program_wise_fee_collection.py
  54. 1
      erpnext/erpnext_integrations/doctype/amazon_mws_settings/amazon_mws_settings.js
  55. 1
      erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.js
  56. 1
      erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.py
  57. 1
      erpnext/healthcare/doctype/exercise_type/exercise_type.py
  58. 1
      erpnext/healthcare/doctype/healthcare_practitioner/healthcare_practitioner.js
  59. 1
      erpnext/healthcare/doctype/inpatient_medication_order/test_inpatient_medication_order.py
  60. 3
      erpnext/healthcare/doctype/patient_assessment/patient_assessment.py
  61. 1
      erpnext/healthcare/doctype/vital_signs/vital_signs.py
  62. 1
      erpnext/healthcare/page/patient_progress/patient_progress.py
  63. 1
      erpnext/hr/doctype/appraisal/test_appraisal.js
  64. 1
      erpnext/hr/doctype/appraisal_template/test_appraisal_template.js
  65. 2
      erpnext/hr/doctype/employee_attendance_tool/employee_attendance_tool.js
  66. 1
      erpnext/hr/doctype/employee_checkin/employee_checkin.py
  67. 1
      erpnext/hr/doctype/employee_grievance/employee_grievance.py
  68. 1
      erpnext/hr/doctype/employee_grievance/test_employee_grievance.py
  69. 1
      erpnext/hr/doctype/employee_onboarding/employee_onboarding.py
  70. 1
      erpnext/hr/doctype/employee_referral/employee_referral.py
  71. 1
      erpnext/hr/doctype/expense_claim/test_expense_claim.js
  72. 1
      erpnext/hr/doctype/expense_claim_type/test_expense_claim_type.js
  73. 1
      erpnext/hr/doctype/hr_settings/hr_settings.py
  74. 1
      erpnext/hr/doctype/job_applicant/job_applicant.py
  75. 1
      erpnext/hr/doctype/job_applicant/test_job_applicant.js
  76. 1
      erpnext/hr/doctype/job_opening/test_job_opening.js
  77. 2
      erpnext/hr/doctype/leave_policy_assignment/test_leave_policy_assignment.py
  78. 1
      erpnext/hr/doctype/training_event/training_event.js
  79. 1
      erpnext/hr/doctype/training_feedback/test_training_feedback.js
  80. 1
      erpnext/hr/doctype/training_feedback/training_feedback.py
  81. 1
      erpnext/hr/doctype/training_result_employee/test_training_result.js
  82. 1
      erpnext/hr/doctype/vehicle_log/vehicle_log.js
  83. 1
      erpnext/hr/report/employee_advance_summary/employee_advance_summary.js
  84. 1
      erpnext/hr/report/employee_analytics/employee_analytics.py
  85. 1
      erpnext/hr/report/vehicle_expenses/vehicle_expenses.js
  86. 2
      erpnext/loan_management/doctype/loan_disbursement/loan_disbursement.py
  87. 1
      erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py
  88. 3
      erpnext/loan_management/doctype/loan_repayment/loan_repayment.py
  89. 9
      erpnext/loan_management/doctype/loan_security_price/loan_security_price.py
  90. 1
      erpnext/loan_management/doctype/loan_security_shortfall/loan_security_shortfall.py
  91. 5
      erpnext/loan_management/doctype/loan_security_unpledge/loan_security_unpledge.py
  92. 1
      erpnext/loan_management/doctype/loan_type/loan_type.py
  93. 2
      erpnext/loan_management/doctype/loan_write_off/loan_write_off.py
  94. 1
      erpnext/loan_management/doctype/process_loan_interest_accrual/process_loan_interest_accrual.py
  95. 3
      erpnext/loan_management/report/loan_security_exposure/loan_security_exposure.py
  96. 1
      erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js
  97. 2
      erpnext/manufacturing/doctype/blanket_order/blanket_order.js
  98. 2
      erpnext/manufacturing/report/bom_operations_time/bom_operations_time.py
  99. 4
      erpnext/manufacturing/report/production_analytics/production_analytics.py
  100. 2
      erpnext/non_profit/doctype/chapter_member/chapter_member.py

2
erpnext/accounts/deferred_revenue.py

@ -450,5 +450,3 @@ def get_deferred_booking_accounts(doctype, voucher_detail_no, dr_or_cr):
return debit_account
else:
return credit_account

2
erpnext/accounts/doctype/accounting_dimension/test_accounting_dimension.py

@ -113,5 +113,3 @@ def disable_dimension():
dimension2 = frappe.get_doc("Accounting Dimension", "Location")
dimension2.disabled = 1
dimension2.save()

1
erpnext/accounts/doctype/bank_transaction/bank_transaction.py

@ -105,4 +105,3 @@ def unclear_reference_payment(doctype, docname):
frappe.db.set_value(doc.payment_document, doc.payment_entry, "clearance_date", None)
return doc.payment_entry

2
erpnext/accounts/doctype/cash_flow_mapping/cash_flow_mapping.py

@ -18,5 +18,3 @@ class CashFlowMapping(Document):
frappe._('You can only select a maximum of one option from the list of check boxes.'),
title='Error'
)

3
erpnext/accounts/doctype/cost_center/test_cost_center.py

@ -62,6 +62,3 @@ def create_cost_center(**args):
cc.is_group = args.is_group or 0
cc.parent_cost_center = args.parent_cost_center or "_Test Company - _TC"
cc.insert()

3
erpnext/accounts/doctype/coupon_code/test_coupon_code.py

@ -124,6 +124,3 @@ class TestCouponCode(unittest.TestCase):
so.submit()
self.assertEqual(frappe.db.get_value("Coupon Code", "SAVE30", "used"), 1)

1
erpnext/accounts/doctype/mode_of_payment/mode_of_payment.py

@ -39,4 +39,3 @@ class ModeofPayment(Document):
message = "POS Profile " + frappe.bold(", ".join(pos_profiles)) + " contains \
Mode of Payment " + frappe.bold(str(self.name)) + ". Please remove them to disable this mode."
frappe.throw(_(message), title="Not Allowed")

1
erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py

@ -241,4 +241,3 @@ def get_temporary_opening_account(company=None):
frappe.throw(_("Please add a Temporary Opening account in Chart of Accounts"))
return accounts[0].name

1
erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py

@ -147,4 +147,3 @@ class TestPOSInvoiceMergeLog(unittest.TestCase):
frappe.set_user("Administrator")
frappe.db.sql("delete from `tabPOS Profile`")
frappe.db.sql("delete from `tabPOS Invoice`")

1
erpnext/accounts/doctype/pricing_rule/tests/test_pricing_rule.js

@ -26,4 +26,3 @@ QUnit.test("test pricing rule", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.js

@ -72,4 +72,3 @@ QUnit.test("test purchase invoice", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/purchase_taxes_and_charges_template/test_purchase_taxes_and_charges_template.js

@ -26,4 +26,3 @@ QUnit.test("test sales taxes and charges template", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice.js

@ -40,4 +40,3 @@ QUnit.test("test sales Invoice", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_margin.js

@ -33,4 +33,3 @@ QUnit.test("test sales invoice with margin", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_payment.js

@ -54,4 +54,3 @@ QUnit.test("test sales Invoice with payment", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_payment_request.js

@ -49,4 +49,3 @@ QUnit.test("test sales Invoice with payment request", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_serialize_item.js

@ -42,4 +42,3 @@ QUnit.test("test sales Invoice with serialize item", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/sales_taxes_and_charges_template/test_sales_taxes_and_charges_template.js

@ -26,4 +26,3 @@ QUnit.test("test sales taxes and charges template", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/shipping_rule/test_shipping_rule.js

@ -34,4 +34,3 @@ QUnit.test("test Shipping Rule", function(assert) {
() => done()
]);
});

1
erpnext/accounts/doctype/shipping_rule/tests/test_shipping_rule_for_buying.js

@ -34,4 +34,3 @@ QUnit.test("test Shipping Rule", function(assert) {
() => done()
]);
});

2
erpnext/accounts/doctype/subscription/test_subscription.py

@ -630,5 +630,3 @@ class TestSubscription(unittest.TestCase):
subscription.process()
self.assertEqual(len(subscription.invoices), 1)

1
erpnext/accounts/print_format/payment_receipt_voucher/payment_receipt_voucher.html

@ -27,4 +27,3 @@
{{ _("Authorized Signatory") }}
</p>
</div>

5
erpnext/accounts/report/account_balance/test_account_balance.py

@ -62,8 +62,3 @@ def make_sales_invoice():
income_account = 'Sales - _TC2',
expense_account = 'Cost of Goods Sold - _TC2',
cost_center = 'Main - _TC2')

1
erpnext/accounts/report/accounts_payable/accounts_payable.js

@ -136,4 +136,3 @@ frappe.query_reports["Accounts Payable"] = {
}
erpnext.utils.add_dimensions('Accounts Payable', 9);

1
erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.js

@ -105,4 +105,3 @@ frappe.query_reports["Accounts Payable Summary"] = {
}
erpnext.utils.add_dimensions('Accounts Payable Summary', 9);

1
erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.py

@ -12,4 +12,3 @@ def execute(filters=None):
"naming_by": ["Buying Settings", "supp_master_name"],
}
return AccountsReceivableSummary(filters).run(args)

1
erpnext/accounts/report/accounts_receivable/accounts_receivable.js

@ -200,4 +200,3 @@ frappe.query_reports["Accounts Receivable"] = {
}
erpnext.utils.add_dimensions('Accounts Receivable', 9);

1
erpnext/accounts/report/accounts_receivable/test_accounts_receivable.py

@ -93,4 +93,3 @@ def make_credit_note(docname):
cost_center = 'Main - _TC2',
is_return = 1,
return_against = docname)

1
erpnext/accounts/report/budget_variance_report/budget_variance_report.js

@ -92,4 +92,3 @@ frappe.query_reports["Budget Variance Report"] = {
erpnext.dimension_filters.forEach((dimension) => {
frappe.query_reports["Budget Variance Report"].filters[4].options.push(dimension["document_type"]);
});

1
erpnext/accounts/report/budget_variance_report/budget_variance_report.py

@ -399,4 +399,3 @@ def get_chart_data(filters, columns, data):
},
'type' : 'bar'
}

1
erpnext/accounts/report/general_ledger/general_ledger.js

@ -176,4 +176,3 @@ frappe.query_reports["General Ledger"] = {
}
erpnext.utils.add_dimensions('General Ledger', 15)

4
erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py

@ -626,7 +626,3 @@ def add_sub_total_row(item, total_row_map, group_by_value, tax_columns):
for tax in tax_columns:
total_row.setdefault(frappe.scrub(tax + ' Amount'), 0.0)
total_row[frappe.scrub(tax + ' Amount')] += flt(item[frappe.scrub(tax + ' Amount')])

1
erpnext/accounts/report/sales_register/sales_register.js

@ -69,4 +69,3 @@ frappe.query_reports["Sales Register"] = {
}
erpnext.utils.add_dimensions('Sales Register', 7);

3
erpnext/accounts/report/trial_balance/trial_balance.js

@ -110,6 +110,3 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() {
erpnext.utils.add_dimensions('Trial Balance', 6);
});

1
erpnext/agriculture/doctype/disease/test_disease.js

@ -36,4 +36,3 @@ QUnit.test("test: Disease", function (assert) {
]);
});

1
erpnext/assets/doctype/asset_repair/asset_repair_list.js

@ -10,4 +10,3 @@ frappe.listview_settings['Asset Repair'] = {
}
}
};

2
erpnext/buying/doctype/supplier_scorecard/supplier_scorecard.js

@ -93,5 +93,3 @@ var loadAllStandings = function(frm) {
}
});
};

1
erpnext/buying/doctype/supplier_scorecard/test_supplier_scorecard.py

@ -128,4 +128,3 @@ valid_scorecard = [
"weighting_function":"{total_score} * max( 0, min ( 1 , (12 - {period_number}) / 12) )"
}
]

1
erpnext/buying/doctype/supplier_scorecard_period/supplier_scorecard_period.py

@ -109,4 +109,3 @@ def make_supplier_scorecard(source_name, target_doc=None):
}, target_doc, post_process, ignore_permissions=True)
return doc

1
erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py

@ -268,4 +268,3 @@ def get_columns(filters):
])
return columns

1
erpnext/buying/utils.py

@ -102,4 +102,3 @@ def get_linked_material_requests(items):
mr_list.append(material_request)
return mr_list

1
erpnext/controllers/item_variant.py

@ -344,4 +344,3 @@ def create_variant_doc_for_quick_entry(template, args):
variant.name = variant.item_code
validate_item_variant_attributes(variant, args)
return variant.as_dict()

1
erpnext/crm/doctype/appointment/appointment.py

@ -235,4 +235,3 @@ def _get_employee_from_user(user):
# frappe.db.exists returns a tuple of a tuple
return frappe.get_doc('Employee', employee_docname[0][0])
return None

1
erpnext/crm/report/campaign_efficiency/campaign_efficiency.js

@ -16,4 +16,3 @@ frappe.query_reports["Campaign Efficiency"] = {
}
]
};

2
erpnext/crm/report/lead_conversion_time/lead_conversion_time.js

@ -20,5 +20,3 @@ frappe.query_reports["Lead Conversion Time"] = {
},
]
};

1
erpnext/crm/report/lead_details/lead_details.py

@ -155,4 +155,3 @@ def get_conditions(filters) :
conditions.append(" and `tabLead`.status=%(status)s")
return " ".join(conditions) if conditions else ""

4
erpnext/education/doctype/assessment_result/assessment_result.py

@ -42,7 +42,3 @@ class AssessmentResult(Document):
"student":self.student, "assessment_plan":self.assessment_plan, "docstatus":("!=", 2)})
if assessment_result:
frappe.throw(_("Assessment Result record {0} already exists.").format(getlink("Assessment Result",assessment_result[0].name)))

1
erpnext/education/doctype/assessment_result/test_assessment_result.py

@ -16,4 +16,3 @@ class TestAssessmentResult(unittest.TestCase):
grade = get_grade("_Test Grading Scale", 70)
self.assertEqual("B", grade)

3
erpnext/education/doctype/course_enrollment/test_course_enrollment.py

@ -39,6 +39,3 @@ class TestCourseEnrollment(unittest.TestCase):
doc = frappe.get_doc("Program Enrollment", entry.name)
doc.cancel()
doc.delete()

1
erpnext/education/doctype/course_schedule/course_schedule.py

@ -47,4 +47,3 @@ class CourseSchedule(Document):
validate_overlap_for(self, "Assessment Plan", "room")
validate_overlap_for(self, "Assessment Plan", "supervisor", self.instructor)

1
erpnext/education/doctype/program_enrollment/program_enrollment.py

@ -174,4 +174,3 @@ def get_students(doctype, txt, searchfield, start, page_len, filters):
tuple(students + ["%%%s%%" % txt, start, page_len]
)
)

1
erpnext/education/doctype/student_group/student_group.py

@ -128,4 +128,3 @@ def fetch_students(doctype, txt, searchfield, start, page_len, filters):
order by idx desc, name
limit %s, %s""".format(searchfield),
tuple(["%%%s%%" % txt, "%%%s%%" % txt, start, page_len]))

1
erpnext/education/report/program_wise_fee_collection/program_wise_fee_collection.py

@ -121,4 +121,3 @@ def get_chart_data(data):
},
'type': 'bar'
}

1
erpnext/erpnext_integrations/doctype/amazon_mws_settings/amazon_mws_settings.js

@ -1,3 +1,2 @@
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt

1
erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.js

@ -188,4 +188,3 @@ frappe.tour['Clinical Procedure Template'] = [
description: __('You can also set the Medical Department for the template. After saving the document, an Item will automatically be created for billing this Clinical Procedure. You can then use this template while creating Clinical Procedures for Patients. Templates save you from filling up redundant data every single time. You can also create templates for other operations like Lab Tests, Therapy Sessions, etc.')
}
];

1
erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.py

@ -118,4 +118,3 @@ def change_item_code_from_template(item_code, doc):
rename_doc('Item', doc.item_code, item_code, ignore_permissions=True)
frappe.db.set_value('Clinical Procedure Template', doc.name, 'item_code', item_code)
return

1
erpnext/healthcare/doctype/exercise_type/exercise_type.py

@ -12,4 +12,3 @@ class ExerciseType(Document):
self.name = ' - '.join(filter(None, [self.exercise_name, self.difficulty_level]))
else:
self.name = self.exercise_name

1
erpnext/healthcare/doctype/healthcare_practitioner/healthcare_practitioner.js

@ -142,4 +142,3 @@ frappe.tour['Healthcare Practitioner'] = [
description: __('If this Healthcare Practitioner also works for the In-Patient Department, set the inpatient visit charge for this Practitioner.')
}
];

1
erpnext/healthcare/doctype/inpatient_medication_order/test_inpatient_medication_order.py

@ -140,4 +140,3 @@ def create_ipme(filters, update_stock=0):
ipme = ipme.get_medication_orders()
return ipme

3
erpnext/healthcare/doctype/patient_assessment/patient_assessment.py

@ -31,6 +31,3 @@ def create_patient_assessment(source_name, target_doc=None):
}, target_doc)
return doc

1
erpnext/healthcare/doctype/vital_signs/vital_signs.py

@ -15,4 +15,3 @@ class VitalSigns(Document):
def set_title(self):
self.title = _('{0} on {1}').format(self.patient_name or self.patient,
frappe.utils.format_date(self.signs_date))[:100]

1
erpnext/healthcare/page/patient_progress/patient_progress.py

@ -194,4 +194,3 @@ def get_date_range(time_span):
return time_span
except json.decoder.JSONDecodeError:
return get_timespan_date_range(time_span.lower())

1
erpnext/hr/doctype/appraisal/test_appraisal.js

@ -55,4 +55,3 @@ QUnit.test("Test: Expense Claim [HR]", function (assert) {
() => done()
]);
});

1
erpnext/hr/doctype/appraisal_template/test_appraisal_template.js

@ -27,4 +27,3 @@ QUnit.test("Test: Appraisal Template [HR]", function (assert) {
() => done()
]);
});

2
erpnext/hr/doctype/employee_attendance_tool/employee_attendance_tool.js

@ -267,5 +267,3 @@ erpnext.EmployeeSelector = class EmployeeSelector {
mark_employee_toolbar.appendTo($(this.wrapper));
}
};

1
erpnext/hr/doctype/employee_checkin/employee_checkin.py

@ -176,4 +176,3 @@ def time_diff_in_hours(start, end):
def find_index_in_dict(dict_list, key, value):
return next((index for (index, d) in enumerate(dict_list) if d[key] == value), None)

1
erpnext/hr/doctype/employee_grievance/employee_grievance.py

@ -12,4 +12,3 @@ class EmployeeGrievance(Document):
bold("Invalid"),
bold("Resolved"))
)

1
erpnext/hr/doctype/employee_grievance/test_employee_grievance.py

@ -48,4 +48,3 @@ def create_grievance_type():
grievance_type.save()
return grievance_type.name

1
erpnext/hr/doctype/employee_onboarding/employee_onboarding.py

@ -57,4 +57,3 @@ def make_employee(source_name, target_doc=None):
}}
}, target_doc, set_missing_values)
return doc

1
erpnext/hr/doctype/employee_referral/employee_referral.py

@ -70,4 +70,3 @@ def create_additional_salary(doc):
additional_salary.ref_docname = doc.name
return additional_salary

1
erpnext/hr/doctype/expense_claim/test_expense_claim.js

@ -42,4 +42,3 @@ QUnit.test("Test: Expense Claim [HR]", function (assert) {
() => done()
]);
});

1
erpnext/hr/doctype/expense_claim_type/test_expense_claim_type.js

@ -27,4 +27,3 @@ QUnit.test("Test: Expense Claim Type [HR]", function (assert) {
() => done()
]);
});

1
erpnext/hr/doctype/hr_settings/hr_settings.py

@ -15,4 +15,3 @@ class HRSettings(Document):
from erpnext.setup.doctype.naming_series.naming_series import set_by_naming_series
set_by_naming_series("Employee", "employee_number",
self.get("emp_created_by")=="Naming Series", hide_name_field=True)

1
erpnext/hr/doctype/job_applicant/job_applicant.py

@ -50,4 +50,3 @@ class JobApplicant(Document):
if names:
frappe.throw(_("Email Address must be unique, already exists for {0}").format(comma_and(names)), frappe.DuplicateEntryError)

1
erpnext/hr/doctype/job_applicant/test_job_applicant.js

@ -26,4 +26,3 @@ QUnit.test("Test: Job Opening [HR]", function (assert) {
() => done()
]);
});

1
erpnext/hr/doctype/job_opening/test_job_opening.js

@ -24,4 +24,3 @@ QUnit.test("Test: Job Opening [HR]", function (assert) {
() => done()
]);
});

2
erpnext/hr/doctype/leave_policy_assignment/test_leave_policy_assignment.py

@ -99,5 +99,3 @@ class TestLeavePolicyAssignment(unittest.TestCase):
def tearDown(self):
for doctype in ["Leave Application", "Leave Allocation", "Leave Policy Assignment", "Leave Ledger Entry"]:
frappe.db.sql("delete from `tab{0}`".format(doctype)) #nosec

1
erpnext/hr/doctype/training_event/training_event.js

@ -46,4 +46,3 @@ frappe.ui.form.on("Training Event Employee", {
frm.events.set_employee_query(frm);
}
});

1
erpnext/hr/doctype/training_feedback/test_training_feedback.js

@ -49,4 +49,3 @@ QUnit.test("Test: Training Feedback [HR]", function (assert) {
() => done()
]);
});

1
erpnext/hr/doctype/training_feedback/training_feedback.py

@ -42,4 +42,3 @@ class TrainingFeedback(Document):
if employee:
frappe.db.set_value("Training Event Employee", employee, "status", "Completed")

1
erpnext/hr/doctype/training_result_employee/test_training_result.js

@ -50,4 +50,3 @@ QUnit.test("Test: Training Result [HR]", function (assert) {
() => done()
]);
});

1
erpnext/hr/doctype/vehicle_log/vehicle_log.js

@ -24,4 +24,3 @@ frappe.ui.form.on("Vehicle Log", {
});
}
});

1
erpnext/hr/report/employee_advance_summary/employee_advance_summary.js

@ -38,4 +38,3 @@ frappe.query_reports["Employee Advance Summary"] = {
}
]
};

1
erpnext/hr/report/employee_analytics/employee_analytics.py

@ -81,4 +81,3 @@ def get_chart_data(parameters,employees, filters):
}
chart["type"] = "donut"
return chart

1
erpnext/hr/report/vehicle_expenses/vehicle_expenses.js

@ -49,4 +49,3 @@ frappe.query_reports["Vehicle Expenses"] = {
}
]
};

2
erpnext/loan_management/doctype/loan_disbursement/loan_disbursement.py

@ -203,5 +203,3 @@ def get_disbursal_amount(loan, on_current_security_price=0):
disbursal_amount = loan_details.loan_amount - loan_details.disbursed_amount
return disbursal_amount

1
erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py

@ -247,4 +247,3 @@ def get_per_day_interest(principal_amount, rate_of_interest, posting_date=None):
posting_date = getdate()
return flt((principal_amount * rate_of_interest) / (days_in_year(get_datetime(posting_date).year) * 100))

3
erpnext/loan_management/doctype/loan_repayment/loan_repayment.py

@ -455,6 +455,3 @@ def calculate_amounts(against_loan, posting_date, payment_type=''):
amounts['payable_amount'] = amounts['payable_principal_amount'] + amounts['interest_amount']
return amounts

9
erpnext/loan_management/doctype/loan_security_price/loan_security_price.py

@ -40,12 +40,3 @@ def get_loan_security_price(loan_security, valid_time=None):
frappe.throw(_("No valid Loan Security Price found for {0}").format(frappe.bold(loan_security)))
else:
return loan_security_price

1
erpnext/loan_management/doctype/loan_security_shortfall/loan_security_shortfall.py

@ -122,4 +122,3 @@ def update_pending_shortfall(shortfall):
"shortfall_amount": 0,
"shortfall_percentage": 0
})

5
erpnext/loan_management/doctype/loan_security_unpledge/loan_security_unpledge.py

@ -147,8 +147,3 @@ def get_pledged_security_qty(loan):
current_pledges[security] -= unpledges.get(security, 0.0)
return current_pledges

1
erpnext/loan_management/doctype/loan_type/loan_type.py

@ -21,4 +21,3 @@ class LoanType(Document):
if self.get('loan_account') == self.get('payment_account'):
frappe.throw(_('Loan Account and Payment Account cannot be same'))

2
erpnext/loan_management/doctype/loan_write_off/loan_write_off.py

@ -84,5 +84,3 @@ class LoanWriteOff(AccountsController):
)
make_gl_entries(gl_entries, cancel=cancel, merge_entries=False)

1
erpnext/loan_management/doctype/process_loan_interest_accrual/process_loan_interest_accrual.py

@ -61,4 +61,3 @@ def term_loan_accrual_pending(date):
})
return pending_accrual

3
erpnext/loan_management/report/loan_security_exposure/loan_security_exposure.py

@ -79,6 +79,3 @@ def get_company_wise_loan_security_details(filters, loan_security_details):
total_portfolio_value += flt(qty * loan_security_details.get(key[1], {}).get('latest_price', 0))
return security_wise_map, total_portfolio_value

1
erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js

@ -163,4 +163,3 @@ erpnext.maintenance.MaintenanceSchedule = class MaintenanceSchedule extends frap
};
extend_cscript(cur_frm.cscript, new erpnext.maintenance.MaintenanceSchedule({frm: cur_frm}));

2
erpnext/manufacturing/doctype/blanket_order/blanket_order.js

@ -85,5 +85,3 @@ frappe.ui.form.on('Blanket Order', {
frm.trigger('set_tc_name_filter');
}
});

2
erpnext/manufacturing/report/bom_operations_time/bom_operations_time.py

@ -108,5 +108,3 @@ def get_columns(filters):
"fieldtype": "Int",
"width": 180
}]

4
erpnext/manufacturing/report/production_analytics/production_analytics.py

@ -139,7 +139,3 @@ def get_chart_data(periodic_data, columns):
chart["type"] = "line"
return chart

2
erpnext/non_profit/doctype/chapter_member/chapter_member.py

@ -7,5 +7,3 @@ from frappe.model.document import Document
class ChapterMember(Document):
pass

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save