Repository Analysis

frappe/erpnext

Free and Open Source Enterprise Resource Planning (ERP)

7.7 Low AI signal View on GitHub
7.7
Adjusted Score
7.7
Raw Score
100%
Time Factor
2026-05-30
Last Push
35,117
Stars
Python
Language
786,073
Lines of Code
4858
Files
5639
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 57HIGH 65MEDIUM 123LOW 5394

Pattern Findings

5639 matches across 15 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers4494 hits · 3908 pts
SeverityFileLineSnippet
LOWerpnext/__init__.py78def is_perpetual_inventory_enabled(company):
LOWerpnext/deprecation_dumpster.py130def taxes_and_totals_get_itemised_taxable_amount(items):
LOWerpnext/deprecation_dumpster.py148def get_pos_profile_item_details(company, ctx, pos_profile=None, update_data=False):
LOWerpnext/edi/doctype/code_list/code_list_import.py48def import_genericode_from_url(
LOWerpnext/edi/doctype/code_list/code_list_import.py65def get_uploaded_genericode_file() -> tuple[bytes, str | None]:
LOWerpnext/edi/doctype/code_list/code_list_import.py91def fetch_genericode_from_url(url: str) -> bytes:
LOWerpnext/edi/doctype/code_list/code_list_import.py97def import_genericode_content(
LOWerpnext/edi/doctype/code_list/code_list_import.py153def process_genericode_import(
LOWerpnext/edi/doctype/code_list/code_list_import.py168def get_genericode_columns_and_examples(root):
LOWerpnext/edi/doctype/code_list/test_code_list_import.py53 def test_import_genericode_rejects_remote_file_url(self):
LOWerpnext/edi/doctype/code_list/test_code_list_import.py67 def test_import_genericode_rejects_file_scheme_url(self):
LOWerpnext/edi/doctype/code_list/test_code_list_import.py81 def test_import_genericode_from_trusted_url(self):
LOWerpnext/edi/doctype/code_list/test_code_list_import.py104 def test_import_genericode_from_trusted_url_propagates_fetch_errors(self):
LOWerpnext/edi/doctype/code_list/test_code_list_import.py112 def test_import_genericode_from_uploaded_file_returns_metadata(self):
LOWerpnext/edi/doctype/code_list/test_code_list_import.py122 def test_process_genericode_import_reads_file_doc_content(self):
LOWerpnext/edi/doctype/code_list/test_code_list_import.py144 def test_import_genericode_from_local_file_url(self):
LOWerpnext/edi/doctype/common_code/common_code.py37 def validate_distinct_references(self):
LOW…n/doctype/bulk_transaction_log/bulk_transaction_log.py108def serialize_transaction_log(data):
LOWerpnext/portal/utils.py22def create_customer_or_supplier():
LOWerpnext/buying/utils.py14def update_last_purchase_rate(doc, is_submit) -> None:
LOWerpnext/buying/utils.py90def validate_item_and_get_basic_data(row) -> dict:
LOWerpnext/buying/utils.py103def validate_stock_item_warehouse(row, item) -> None:
LOWerpnext/buying/utils.py112def check_on_hold_or_closed_status(doctype, docname) -> None:
LOWerpnext/buying/utils.py120def get_linked_material_requests(items: str):
LOW…_be_received/test_subcontracted_item_to_be_received.py28 def test_pending_and_received_qty(self):
LOW…_be_received/test_subcontracted_item_to_be_received.py77def make_subcontracting_receipt_against_sco(sco, quantity=5):
LOW…em_to_be_received/subcontracted_item_to_be_received.py91def get_subcontract_order_supplied_item(order_type, orders):
LOW…d_receive/test_requested_items_to_order_and_receive.py39 def test_ordered_received_material_requests(self):
LOW…em_wise_purchase_history/item_wise_purchase_history.py207def get_purchase_order_details(company_list, filters):
LOW…erred/subcontracted_raw_materials_to_be_transferred.py62def get_order_items_to_supply(filters):
LOW…/test_subcontracted_raw_materials_to_be_transferred.py21 def test_pending_and_transferred_qty(self):
LOW…/test_subcontracted_raw_materials_to_be_transferred.py75def transfer_subcontracted_raw_materials(sco):
LOW…subcontract_order_summary/subcontract_order_summary.py90def prepare_subcontracted_data(orders, supplied_items):
LOW…uying/doctype/supplier_quotation/supplier_quotation.py153 def validate_with_previous_doc(self):
LOW…uying/doctype/supplier_quotation/supplier_quotation.py172 def update_rfq_supplier_status(self, include_me):
LOW…/doctype/supplier_quotation/test_supplier_quotation.py20 def test_update_child_supplier_quotation_add_item(self):
LOW…/doctype/supplier_quotation/test_supplier_quotation.py41 def test_update_supplier_quotation_child_rate(self):
LOW…/doctype/supplier_quotation/test_supplier_quotation.py74 def test_update_supplier_quotation_child_remove_item(self):
LOW…/doctype/supplier_quotation/test_supplier_quotation.py131 def test_supplier_quotation_qty(self):
LOW…/doctype/supplier_quotation/test_supplier_quotation.py142 def test_supplier_quotation_zero_qty(self):
LOW…/doctype/supplier_quotation/test_supplier_quotation.py174 def test_map_purchase_order_from_zero_qty_supplier_quotation(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py235 def validate_with_previous_doc(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py297 def validate_minimum_order_qty(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py322 def validate_fg_item_for_subcontracting(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py385 def check_on_hold_or_closed_status(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py520 def update_status_updater_if_from_pp(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py534 def update_delivered_qty_in_sales_order(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py548 def set_received_qty_to_zero_for_drop_ship_items(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py557 def update_dropship_received_qty(self, data: list[dict]):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py622 def update_receiving_percentage(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py632 def set_service_items_for_finished_goods(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py662 def update_ordered_qty_in_so_for_removed_items(self, removed_items):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py686 def auto_create_subcontracting_order(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py691 def update_subcontracting_order_status(self):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py722def close_or_unclose_purchase_orders(names: str, status: str):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py823def make_purchase_invoice_from_portal(purchase_order_name: str):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py834def get_mapped_purchase_invoice(source_name, target_doc=None, ignore_permissions=False, args=None):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py948def make_inter_company_sales_order(source_name: str, target_doc: str | Document | None = None):
LOWerpnext/buying/doctype/purchase_order/purchase_order.py955def make_subcontracting_order(
LOWerpnext/buying/doctype/purchase_order/purchase_order.py988def is_po_fully_subcontracted(po_name):
4434 more matches not shown…
Hallucination Indicators57 hits · 595 pts
SeverityFileLineSnippet
CRITICALerpnext/buying/doctype/purchase_order/purchase_order.js288 this.frm.fields_dict.items_section.wrapper.addClass("hide-border");
CRITICALerpnext/buying/doctype/purchase_order/purchase_order.js290 this.frm.fields_dict.items_section.wrapper.removeClass("hide-border");
CRITICALerpnext/selling/page/point_of_sale/pos_controller.js44 dialog.fields_dict.balance_details.df.data.some((d) => {
CRITICALerpnext/selling/page/point_of_sale/pos_controller.js61 dialog.fields_dict.balance_details.df.data.push({ mode_of_payment, opening_amount: "0" });
CRITICALerpnext/selling/doctype/sales_order/sales_order.js267 dialog.fields_dict.items.df.data.forEach((row) => {
CRITICALerpnext/selling/doctype/sales_order/sales_order.js304 dialog.fields_dict.items.df.data.forEach((row) => {
CRITICALerpnext/selling/doctype/sales_order/sales_order.js311 dialog.fields_dict.items.df.data.push({
CRITICALerpnext/selling/doctype/sales_order/sales_order.js445 dialog.fields_dict.items.df.data.push({
CRITICALerpnext/selling/doctype/sales_order/sales_order.js469 dialog.fields_dict.items.df.data.push({
CRITICALerpnext/selling/doctype/sales_order/sales_order.js577 dialog.fields_dict.sr_entries.df.data.push({
CRITICALerpnext/selling/doctype/sales_order/sales_order.js729 frm.schedule_dialog.fields_dict.delivery_schedule.df.data.push({
CRITICALerpnext/selling/doctype/sales_order/sales_order.js778 frm.schedule_dialog.fields_dict.delivery_schedule.df.data.push({
CRITICALerpnext/selling/doctype/sales_order/sales_order.js801 frm.schedule_dialog.fields_dict.delivery_schedule.df.data.push({
CRITICALerpnext/selling/doctype/sales_order/sales_order.js1434 this.frm.fields_dict.items.grid.toggle_reqd(
CRITICAL…pnext/manufacturing/doctype/workstation/workstation.js285 this.employee_dialog.fields_dict.employees.df.data.push({
CRITICAL…pnext/manufacturing/doctype/workstation/workstation.js288 this.employee_dialog.fields_dict.employees.grid.refresh();
CRITICAL…pnext/manufacturing/doctype/workstation/workstation.js340 me.employee_dialog.fields_dict.employees.df.data.push({
CRITICAL…pnext/manufacturing/doctype/workstation/workstation.js344 me.employee_dialog.fields_dict.employees.grid.refresh();
CRITICAL…pnext/manufacturing/doctype/workstation/workstation.js435 this.materials_dialog.fields_dict.items.df.data.push(row);
CRITICAL…pnext/manufacturing/doctype/workstation/workstation.js438 this.materials_dialog.fields_dict.items.grid.refresh();
CRITICALerpnext/manufacturing/doctype/bom/bom.js541 dialog.fields_dict.items.df.data.push({
CRITICALerpnext/manufacturing/doctype/bom/bom.js1062 frm._bom_rm_dialog.fields_dict.items.df.data.push({
CRITICALerpnext/manufacturing/doctype/bom/bom.js1069 frm._bom_rm_dialog.fields_dict.items.grid.refresh();
CRITICALerpnext/manufacturing/doctype/work_order/work_order.js408 dialog.fields_dict.operations.df.data.push({
CRITICALerpnext/public/js/stock_reservation.js180 dialog.fields_dict.items.df.data.push(args);
CRITICALerpnext/public/js/stock_reservation.js252 dialog.fields_dict.sr_entries.df.data.push({
CRITICALerpnext/public/js/utils.js682 dialog.fields_dict.alternative_items.df.data.push({
CRITICALerpnext/public/js/utils.js803 const row = dialog.fields_dict.trans_items.df.data.find(
CRITICALerpnext/public/js/utils.js846 dialog.fields_dict.trans_items.df.data.some((doc) => {
CRITICAL…/public/js/bom_configurator/bom_configurator.bundle.js340 this.layout.fields_dict.items.grid.data.forEach((row) => {
CRITICAL…/public/js/bom_configurator/bom_configurator.bundle.js344 this.layout.fields_dict.items.grid.refresh();
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js52 this.dialog.fields_dict.entries.df.data.push({
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js66 this.dialog.fields_dict.entries.grid.refresh();
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js565 this.dialog.fields_dict.entries.grid.refresh();
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js597 let existing_row = this.dialog.fields_dict.entries.df.data.filter((d) => {
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js608 this.dialog.fields_dict.entries.df.data.push({
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js620 this.dialog.fields_dict.entries.df.data.push({
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js626 this.dialog.fields_dict.entries.grid.refresh();
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js631 let existing_row = this.dialog.fields_dict.entries.df.data.filter((d) => {
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js640 this.dialog.fields_dict.entries.df.data.push({
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js649 this.dialog.fields_dict.entries.grid.refresh();
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js748 this.dialog.fields_dict.entries.df.data.push(d);
CRITICALerpnext/public/js/utils/serial_no_batch_selector.js751 this.dialog.fields_dict.entries.grid.refresh();
CRITICALerpnext/public/js/utils/naming_series.js153 this.dialog.fields_dict.naming_series_options.grid.refresh();
CRITICALerpnext/public/js/utils/naming_series.js158 const rows = this.dialog.fields_dict.naming_series_options.grid.get_data();
CRITICALerpnext/public/js/utils/naming_series.js194 this.dialog.fields_dict.naming_series_options.grid.refresh();
CRITICALerpnext/public/js/controllers/transaction.js1716 this.frm.fields_dict.items.grid.toggle_enable(
CRITICALerpnext/public/js/controllers/buying.js145 this.frm.fields_dict.supplied_items.grid.update_docfield_property(
CRITICAL…ctype/payment_reconciliation/payment_reconciliation.js249 let payments = this.frm.fields_dict.payments.grid.get_selected_children();
CRITICAL…ctype/payment_reconciliation/payment_reconciliation.js253 let invoices = this.frm.fields_dict.invoices.grid.get_selected_children();
CRITICAL…ctype/payment_reconciliation/payment_reconciliation.js368 dialog.fields_dict.allocation.df.data.push({
CRITICALerpnext/accounts/doctype/pos_invoice/pos_invoice.js256 dialog.fields_dict.payments.df.data.some((d) => {
CRITICAL…/accounts/doctype/purchase_invoice/purchase_invoice.js209 this.frm.fields_dict.items.grid.update_docfield_property(
CRITICAL…g/doctype/subcontracting_order/subcontracting_order.js310 dialog.fields_dict.items.df.data.push({
CRITICAL…g/doctype/subcontracting_order/subcontracting_order.js414 dialog.fields_dict.sr_entries.df.data.push({
CRITICALerpnext/stock/doctype/stock_entry/stock_entry.js1199 this.frm.fields_dict.items.grid.get_field("item_code").get_query = function () {
CRITICALerpnext/stock/doctype/stock_entry/stock_entry.js1228 this.frm.fields_dict.items.grid.get_field("expense_account").get_query = function () {
Deep Nesting563 hits · 446 pts
SeverityFileLineSnippet
LOW…n/doctype/bulk_transaction_log/bulk_transaction_log.py118
LOWerpnext/portal/utils.py4
LOWerpnext/buying/utils.py14
LOW…ort/purchase_order_analysis/purchase_order_analysis.py134
LOWerpnext/buying/doctype/purchase_order/purchase_order.py722
LOWerpnext/buying/doctype/purchase_order/purchase_order.py955
LOWerpnext/buying/doctype/purchase_order/purchase_order.py322
LOWerpnext/buying/doctype/purchase_order/purchase_order.py359
LOW…uying/doctype/supplier_scorecard/supplier_scorecard.py62
LOW…doctype/request_for_quotation/request_for_quotation.py380
LOWerpnext/selling/page/point_of_sale/point_of_sale.py497
LOW…next/selling/report/sales_analytics/sales_analytics.py154
LOW…next/selling/report/sales_analytics/sales_analytics.py545
LOW…on_item_group/item_group_wise_sales_target_variance.py155
LOW…for_packing_items/available_stock_for_packing_items.py9
LOW…ng/report/sales_order_analysis/sales_order_analysis.py143
LOW…sition_and_loyalty/customer_acquisition_and_loyalty.py100
LOW…ng/report/address_and_contacts/address_and_contacts.py70
LOW…or_sales_order/payment_terms_status_for_sales_order.py96
LOW…or_sales_order/payment_terms_status_for_sales_order.py242
LOW…chase_request/pending_so_items_for_purchase_request.py51
LOWerpnext/selling/doctype/quotation/quotation.py233
LOWerpnext/selling/doctype/sales_order/sales_order.py1036
LOWerpnext/selling/doctype/sales_order/sales_order.py1057
LOWerpnext/selling/doctype/sales_order/sales_order.py1205
LOWerpnext/selling/doctype/sales_order/sales_order.py1252
LOWerpnext/selling/doctype/sales_order/sales_order.py2140
LOWerpnext/selling/doctype/sales_order/sales_order.py282
LOWerpnext/selling/doctype/sales_order/sales_order.py419
LOWerpnext/selling/doctype/sales_order/sales_order.py637
LOWerpnext/selling/doctype/sales_order/sales_order.py783
LOWerpnext/selling/doctype/sms_center/sms_center.py44
LOW…ty_management/doctype/quality_review/quality_review.py48
LOW…agement/doctype/quality_procedure/quality_procedure.py87
LOW…agement/doctype/quality_procedure/quality_procedure.py111
LOW…6_0/set_not_applicable_on_german_item_tax_templates.py163
LOWerpnext/patches/v16_0/migrate_tax_withholding_data.py1056
LOW…_0/repost_stock_ledger_entries_for_target_warehouse.py8
LOW…hes/v12_0/set_purchase_receipt_delivery_note_detail.py6
LOW…hes/v12_0/set_purchase_receipt_delivery_note_detail.py23
LOW…hes/v12_0/set_purchase_receipt_delivery_note_detail.py66
LOW…ext/patches/v12_0/fix_percent_complete_for_projects.py5
LOWerpnext/patches/v12_0/set_priority_for_support.py31
LOWerpnext/patches/v12_0/set_priority_for_support.py72
LOWerpnext/patches/v12_0/set_serial_no_status.py5
LOW…xt/patches/v12_0/move_item_tax_to_item_tax_template.py102
LOW…es/v12_0/move_credit_limit_to_customer_credit_limit.py20
LOW…/v12_0/update_end_date_and_status_in_email_campaign.py5
LOW…t/patches/v15_0/recalculate_amount_difference_field.py9
LOW…pnext/patches/v15_0/link_purchase_item_to_asset_doc.py48
LOW…15_0/migrate_old_item_wise_tax_detail_data_to_table.py31
LOW…15_0/migrate_old_item_wise_tax_detail_data_to_table.py286
LOW…15_0/migrate_old_item_wise_tax_detail_data_to_table.py164
LOW…s/v15_0/update_total_number_of_booked_depreciations.py8
LOW…/move_item_defaults_to_child_table_for_multicompany.py8
LOWerpnext/patches/v11_0/add_item_group_defaults.py8
LOWerpnext/patches/v11_0/update_delivery_trip_status.py8
LOW…atches/v14_0/set_packed_qty_in_draft_delivery_notes.py8
LOWerpnext/patches/v14_0/migrate_gl_to_payment_ledger.py99
LOWerpnext/patches/v13_0/update_sla_enhancements.py8
503 more matches not shown…
Cross-File Repetition61 hits · 305 pts
SeverityFileLineSnippet
HIGHerpnext/buying/doctype/purchase_order/purchase_order.py0update requested qty (before ordered_qty is updated)
HIGHerpnext/selling/doctype/sales_order/sales_order.py0update requested qty (before ordered_qty is updated)
HIGH…ext/stock/doctype/material_request/material_request.py0update requested qty (before ordered_qty is updated)
HIGH…lier_scorecard_variable/supplier_scorecard_variable.py0gets the total number of rfq items sent to supplier
HIGH…lier_scorecard_variable/supplier_scorecard_variable.py0gets the total number of rfq items sent to supplier
HIGH…lier_scorecard_variable/supplier_scorecard_variable.py0gets the total number of rfq items sent to supplier
HIGHerpnext/selling/doctype/sales_order/sales_order.py0returns events for gantt / calendar view rendering. :param start: start date-time. :param end: end date-time. :param fil
HIGHerpnext/projects/doctype/timesheet/timesheet.py0returns events for gantt / calendar view rendering. :param start: start date-time. :param end: end date-time. :param fil
HIGHerpnext/setup/doctype/holiday_list/holiday_list.py0returns events for gantt / calendar view rendering. :param start: start date-time. :param end: end date-time. :param fil
HIGHerpnext/selling/doctype/sales_order/test_sales_order.py0expected result: sales order should not get cancelled
HIGHerpnext/selling/doctype/sales_order/test_sales_order.py0expected result: sales order should not get cancelled
HIGHerpnext/selling/doctype/sales_order/test_sales_order.py0expected result: sales order should not get cancelled
HIGHerpnext/selling/doctype/customer/customer.py0hook to return the target email address for notifications.
HIGHerpnext/crm/doctype/opportunity/opportunity.py0hook to return the target email address for notifications.
HIGHerpnext/crm/doctype/prospect/prospect.py0hook to return the target email address for notifications.
HIGHerpnext/crm/doctype/lead/lead.py0hook to return the target email address for notifications.
HIGH…atches/v13_0/delete_report_requested_items_to_order.py0check for one or multiple auto email reports and delete
HIGHerpnext/patches/v13_0/delete_old_purchase_reports.py0check for one or multiple auto email reports and delete
HIGHerpnext/patches/v13_0/delete_old_sales_reports.py0check for one or multiple auto email reports and delete
HIGHerpnext/setup/doctype/item_group/item_group.py0check whether tax rate is not entered twice for same tax type
HIGH…ccounts/doctype/item_tax_template/item_tax_template.py0check whether tax rate is not entered twice for same tax type
HIGHerpnext/stock/doctype/item/item.py0check whether tax rate is not entered twice for same tax type
HIGHerpnext/accounts/report/financial_statements.py0select lft, rgt from tabaccount where root_type=%s and ifnull(parent_account, '') = ''
HIGH…inancial_statement/consolidated_financial_statement.py0select lft, rgt from tabaccount where root_type=%s and ifnull(parent_account, '') = ''
HIGHerpnext/accounts/report/cash_flow/cash_flow.py0select lft, rgt from tabaccount where root_type=%s and ifnull(parent_account, '') = ''
HIGHerpnext/accounts/report/financial_statements.py0returns a dict like { "account": [gl entries], ... }
HIGH…inancial_statement/consolidated_financial_statement.py0returns a dict like { "account": [gl entries], ... }
HIGH…eport/profitability_analysis/profitability_analysis.py0returns a dict like { "account": [gl entries], ... }
HIGH…nsolidated_trial_balance/consolidated_trial_balance.py0return columns and data for the report. this is the main entry point for the report. it accepts the filters as a diction
HIGH…eport/invalid_ledger_entries/invalid_ledger_entries.py0return columns and data for the report. this is the main entry point for the report. it accepts the filters as a diction
HIGH…_and_batch_bundle/incorrect_serial_and_batch_bundle.py0return columns and data for the report. this is the main entry point for the report. it accepts the filters as a diction
HIGH…/report/negative_batch_report/negative_batch_report.py0return columns and data for the report. this is the main entry point for the report. it accepts the filters as a diction
HIGH…next/accounts/report/gross_profit/test_gross_profit.py0helper function to populate default values in sales invoice
HIGH…/payment_reconciliation/test_payment_reconciliation.py0helper function to populate default values in sales invoice
HIGH…/payment_reconciliation/test_payment_reconciliation.py0helper function to populate default values in sales invoice
HIGH…/payment_reconciliation/test_payment_reconciliation.py0helper function to populate default values in sales invoice
HIGH…type/payment_ledger_entry/test_payment_ledger_entry.py0helper function to populate default values in sales invoice
HIGHerpnext/controllers/tests/test_accounts_controller.py0helper function to populate default values in sales invoice
HIGH…/payment_reconciliation/test_payment_reconciliation.py0helper function to populate default values in payment entry
HIGH…type/payment_ledger_entry/test_payment_ledger_entry.py0helper function to populate default values in payment entry
HIGHerpnext/controllers/tests/test_accounts_controller.py0helper function to populate default values in payment entry
HIGH…t/accounts/doctype/sales_invoice/test_sales_invoice.py0select account, debit, credit from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s order by account a
HIGH…t/accounts/doctype/sales_invoice/test_sales_invoice.py0select account, debit, credit from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s order by account a
HIGH…t/accounts/doctype/sales_invoice/test_sales_invoice.py0select account, debit, credit from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s order by account a
HIGH…t/accounts/doctype/sales_invoice/test_sales_invoice.py0select account, debit, credit from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s order by account a
HIGH…t/accounts/doctype/sales_invoice/test_sales_invoice.py0select account, debit, credit from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s order by account a
HIGH…t/accounts/doctype/sales_invoice/test_sales_invoice.py0select * from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s
HIGH…t/accounts/doctype/sales_invoice/test_sales_invoice.py0select * from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s
HIGH…t/accounts/doctype/sales_invoice/test_sales_invoice.py0select * from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s
HIGH…t/accounts/doctype/sales_invoice/test_sales_invoice.py0select name from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s
HIGH…unts/doctype/purchase_invoice/test_purchase_invoice.py0select name from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s
HIGH…t/accounts/doctype/journal_entry/test_journal_entry.py0select name from `tabgl entry` where voucher_type='sales invoice' and voucher_no=%s
HIGHerpnext/regional/report/uae_vat_201/uae_vat_201.py0returns the sum of the tax of each purchase invoice made.
HIGHerpnext/regional/report/uae_vat_201/uae_vat_201.py0returns the sum of the tax of each purchase invoice made.
HIGHerpnext/regional/report/uae_vat_201/uae_vat_201.py0returns the sum of the tax of each purchase invoice made.
HIGH…tock/doctype/material_request/test_material_request.py0select indented_qty from `tabbin` where \ item_code= %s and warehouse= %s
HIGH…tock/doctype/material_request/test_material_request.py0select indented_qty from `tabbin` where \ item_code= %s and warehouse= %s
HIGH…tock/doctype/material_request/test_material_request.py0select indented_qty from `tabbin` where \ item_code= %s and warehouse= %s
HIGHerpnext/controllers/tests/test_accounts_controller.py0gain/loss je should inherit cost center from payment if company default is unset
HIGHerpnext/controllers/tests/test_accounts_controller.py0gain/loss je should inherit cost center from payment if company default is unset
1 more matches not shown…
Decorative Section Separators64 hits · 220 pts
SeverityFileLineSnippet
MEDIUMerpnext/hooks.py714# ------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py467 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py469 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py1231# =============================================================================
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py1233# =============================================================================
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py294# =============================================================================
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py296# =============================================================================
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py350 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py352 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py561 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py563 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py803 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py805 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py864 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py866 # -------------------------------------------------------------------------
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py897# =============================================================================
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py899# =============================================================================
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py1051# =============================================================================
MEDIUMerpnext/patches/v16_0/migrate_tax_withholding_data.py1053# =============================================================================
MEDIUMerpnext/manufacturing/doctype/job_card/job_card.js583 // ── Determine which action buttons to show ────────────────────────
MEDIUMerpnext/manufacturing/doctype/job_card/job_card.js633 // ── Timer color reflects job state ────────────────────────────────
MEDIUMerpnext/manufacturing/doctype/job_card/job_card.js640 // ── Action button HTML ────────────────────────────────────────────
MEDIUMerpnext/manufacturing/doctype/job_card/job_card.js666 // ── Render widget ─────────────────────────────────────────────────
MEDIUMerpnext/manufacturing/doctype/job_card/job_card.js692 // ── Wire up button click handlers ─────────────────────────────────
MEDIUMerpnext/manufacturing/doctype/job_card/job_card.js749 // ── Timer tick ────────────────────────────────────────────────────
MEDIUMerpnext/accounts/test/test_pre_submit_validation.py220# ---------------------------------------------------------------------------
MEDIUMerpnext/accounts/test/test_pre_submit_validation.py222# ---------------------------------------------------------------------------
MEDIUM…counts/doctype/payment_request/test_payment_request.py1691 # ============================================================================
MEDIUM…counts/doctype/payment_request/test_payment_request.py1693 # ============================================================================
MEDIUM…counts/doctype/payment_request/test_payment_request.py1851 # ============================================================================
MEDIUM…counts/doctype/payment_request/test_payment_request.py1853 # ============================================================================
MEDIUM…counts/doctype/payment_request/test_payment_request.py1290 # ============================================================================
MEDIUM…counts/doctype/payment_request/test_payment_request.py1292 # ============================================================================
MEDIUM…counts/doctype/payment_request/test_payment_request.py1537 # ============================================================================
MEDIUM…counts/doctype/payment_request/test_payment_request.py1539 # ============================================================================
MEDIUM…counts/doctype/payment_request/test_payment_request.py1915 # ============================================================================
MEDIUM…counts/doctype/payment_request/test_payment_request.py1917 # ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py45# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py47# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py205# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py207# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py349# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py351# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py1106# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py1108# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py1358# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py1360# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py1888# ============================================================================
MEDIUM…e/financial_report_template/financial_report_engine.py1890# ============================================================================
MEDIUMerpnext/accounts/doctype/pricing_rule/pricing_rule.py319# --------------------------------------------------------------------------------
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2501 # ── ceil_qty_if_uom_has_whole_number ──────────────────────────────────────
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2520 # ── get_uom_details ────────────────────────────────────────────────────────
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2529 # ── get_warehouse_details ──────────────────────────────────────────────────
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2560 # ── get_work_order_details ─────────────────────────────────────────────────
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2587 # ── get_production_item_details ────────────────────────────────────────────
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2623 # ── get_bom_items ──────────────────────────────────────────────────────────
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2644 # ── validate_sample_quantity ───────────────────────────────────────────────
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2695 # ── validate_source_stock_entry ────────────────────────────────────────────
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2731 # ── validate_job_card_fg_item ──────────────────────────────────────────────
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2754 # ── validate_job_card_item ─────────────────────────────────────────────────
4 more matches not shown…
Excessive Try-Catch Wrapping142 hits · 158 pts
SeverityFileLineSnippet
LOW…lier_scorecard_criteria/supplier_scorecard_criteria.py52 except Exception:
LOWerpnext/buying/doctype/purchase_order/purchase_order.py971 except Exception as e:
LOW…t/buying/doctype/purchase_order/test_purchase_order.py768 except Exception:
LOW…supplier_scorecard_period/supplier_scorecard_period.py78 except Exception:
LOW…supplier_scorecard_period/supplier_scorecard_period.py98 except Exception:
MEDIUM…supplier_scorecard_period/supplier_scorecard_period.py93def calculate_weighted_score(self, weighing_function):
LOW…type/supplier/patches/migrate_supplier_portal_users.py12 except Exception:
MEDIUM…type/supplier/patches/migrate_supplier_portal_users.py8def execute():
LOW…doctype/request_for_quotation/request_for_quotation.py512 except Exception:
LOWerpnext/selling/doctype/sales_order/test_sales_order.py1614 except Exception:
LOW…16_0/set_posting_datetime_for_sabb_and_drop_indexes.py30 except Exception:
LOW…pnext/patches/v4_2/update_requested_and_ordered_qty.py32 except Exception:
LOW…atches/v12_0/move_bank_account_swift_number_to_bank.py19 except Exception:
LOWerpnext/patches/v15_0/drop_sle_indexes.py16 except Exception:
LOW…_task_assignee_email_field_in_asset_maintenance_log.py17 except Exception:
LOW…t_based_on_num_days_in_month_to_daily_prorata_based.py19 except Exception as e:
MEDIUM…t_based_on_num_days_in_month_to_daily_prorata_based.py8def execute():
LOW…n_to_depreciation_amount_based_on_num_days_in_month.py19 except Exception as e:
MEDIUM…n_to_depreciation_amount_based_on_num_days_in_month.py8def execute():
LOW…15_0/migrate_old_item_wise_tax_detail_data_to_table.py290 except Exception:
LOW…/patches/v15_0/drop_index_posting_datetime_from_sle.py15 except Exception:
LOWerpnext/patches/v15_0/remove_exotel_integration.py20 except Exception:
LOW…15_0/unset_incorrect_additional_discount_percentage.py77 except Exception:
MEDIUM…15_0/unset_incorrect_additional_discount_percentage.py74def get_semantic_version(version):
LOW…/move_item_defaults_to_child_table_for_multicompany.py37 except Exception:
LOWerpnext/patches/v14_0/crm_ux_cleanup.py21 except Exception as e:
LOW…es/v14_0/migrate_deferred_accounts_to_item_defaults.py8 except Exception:
MEDIUM…es/v14_0/migrate_deferred_accounts_to_item_defaults.py4def execute():
LOWerpnext/patches/v14_0/migrate_gl_to_payment_ledger.py187 except Exception as err:
LOW…atches/v14_0/rename_ongoing_status_in_sla_documents.py20 except Exception:
LOW…te_accounting_dimensions_in_subcontracting_doctypes.py42 except Exception:
LOW…/patches/v10_0/rename_price_to_rate_in_pricing_rule.py12 except Exception as e:
LOWerpnext/patches/v13_0/drop_unused_sle_index_parts.py9 except Exception:
MEDIUMerpnext/patches/v13_0/drop_unused_sle_index_parts.py6def execute():
LOW…pnext/patches/v13_0/trim_whitespace_from_serial_nos.py68 except Exception:
LOWerpnext/patches/v13_0/reset_corrupt_defaults.py22 except Exception:
LOWerpnext/patches/v13_0/reset_corrupt_defaults.py28 except Exception:
LOW…t/patches/v13_0/modify_invalid_gain_loss_gl_entries.py63 except Exception:
LOW…atches/v13_0/create_accounting_dimensions_in_orders.py37 except Exception:
LOWerpnext/patches/v13_0/job_card_status_on_hold.py18 except Exception:
LOW…t/patches/v13_0/add_missing_fg_item_for_stock_entry.py92 except Exception:
LOWerpnext/crm/frappe_crm_api.py54 except Exception:
LOWerpnext/crm/frappe_crm_api.py126 except Exception:
LOWerpnext/crm/frappe_crm_api.py170 except Exception:
LOWerpnext/crm/doctype/opportunity/opportunity.py154 except Exception:
LOWerpnext/crm/doctype/email_campaign/email_campaign.py123 except Exception:
LOWerpnext/crm/doctype/email_campaign/email_campaign.py199 except Exception:
LOWerpnext/setup/utils.py151 except Exception:
LOWerpnext/setup/demo.py30 except Exception:
LOWerpnext/setup/demo.py73 except Exception:
LOWerpnext/setup/setup_wizard/operations/taxes_setup.py128 except Exception:
LOW…saction_deletion_record/transaction_deletion_record.py461 except Exception as e:
LOW…saction_deletion_record/transaction_deletion_record.py600 except Exception:
MEDIUMerpnext/setup/doctype/company/company.py851def install_country_fixtures(company, country):
LOWerpnext/setup/doctype/company/company.py857 except Exception:
LOWerpnext/tests/test_zform_loads.py35 except Exception as e:
LOWerpnext/tests/utils.py55 except Exception:
LOW…facturing/doctype/bom_update_log/bom_updation_utils.py63 except Exception:
LOW…manufacturing/doctype/bom_update_log/bom_update_log.py142 except Exception:
LOW…manufacturing/doctype/bom_update_log/bom_update_log.py182 except Exception:
82 more matches not shown…
Self-Referential Comments40 hits · 126 pts
SeverityFileLineSnippet
MEDIUMerpnext/edi/doctype/code_list/code_list_import.py114 # Create a new Code List document with the extracted name
MEDIUM…t/buying/doctype/purchase_order/test_purchase_order.py1277 # Create a Purchase Order and Fully Bill it
MEDIUM…doctype/request_for_quotation/request_for_quotation.py482# This method is used to make supplier quotation from supplier's portal.
MEDIUM…pe/request_for_quotation/test_request_for_quotation.py82 # Create a Purchase Taxes and Charges Template for testing
MEDIUM…t_sales_partner_target_variance_based_on_item_group.py21 # Create a Target Distribution
MEDIUM…t_sales_partner_target_variance_based_on_item_group.py29 # Create a Sales Invoice for the Partner
MEDIUM…st_sales_person_target_variance_based_on_item_group.py17 # Create a Target Distribution
MEDIUM…st_sales_person_target_variance_based_on_item_group.py28 # Create a Sales Order with 50-50 contribution between both Sales people
MEDIUMerpnext/selling/doctype/sales_order/test_sales_order.py725 # Create the Material Request from the sales order for the Packing Items
MEDIUMerpnext/selling/doctype/sales_order/test_sales_order.py2007 # Create a advance payment against that Sales Order
MEDIUMerpnext/setup/setup_wizard/operations/taxes_setup.py265 # Create a new group account named 'Duties and Taxes' or 'Tax Assets' just
MEDIUM…saction_deletion_record/transaction_deletion_record.py645 # This method is the entry point for the chain of events that follow
MEDIUMerpnext/manufacturing/doctype/job_card/test_job_card.py487 # Create a corrective operation against it
MEDIUM…xt/manufacturing/doctype/work_order/test_work_order.py1884 # Create a work order
MEDIUM…xt/manufacturing/doctype/work_order/test_work_order.py1903 # Create a stock entry to manufacture the item
MEDIUM…turing/doctype/production_plan/test_production_plan.py2724 # Create the shared phantom BOM
MEDIUMerpnext/www/book_appointment/index.py102 # Create a appointment document from form
MEDIUM…report/accounts_receivable/test_accounts_receivable.py755 # Create a list of customer groups, e.g., ["Group1", "Group2"]
MEDIUM…counts/doctype/payment_request/test_payment_request.py1133 # Create a customer with contact and address to ensure assertions run
MEDIUM…t/accounts/doctype/sales_invoice/test_sales_invoice.py3929 # Create a sales order
MEDIUM…ext/accounts/doctype/subscription/test_subscription.py359 # Create a non pre-billed subscription, processing should not create
MEDIUM…counts/doctype/loyalty_program/test_loyalty_program.py200 # Create a new loyalty program with multiple tiers
MEDIUM…unts/doctype/purchase_invoice/test_purchase_invoice.py97 # Create a Purchase Invoice with update_stock=True
MEDIUM…unts/doctype/purchase_invoice/test_purchase_invoice.py2299 # Create a Supplier
MEDIUM…e/bank_reconciliation_tool/bank_reconciliation_tool.py162 # Create a new journal entry based on the bank transaction
MEDIUM…e/bank_reconciliation_tool/bank_reconciliation_tool.py322 # Create a new payment entry based on the bank transaction
MEDIUM…e/bank_reconciliation_tool/bank_reconciliation_tool.py686 # Create a new journal entry based on the bank transaction
MEDIUM…doctype/repost_item_valuation/repost_item_valuation.py624 # This function is called every 15 minutes via hooks.py
MEDIUM…doctype/repost_item_valuation/repost_item_valuation.py673 # This function is called every hour via hooks.py
MEDIUM…tock/doctype/purchase_receipt/test_purchase_receipt.py2686 # Create a Purchase Receipt and Fully Bill it
MEDIUM…tock/doctype/purchase_receipt/test_purchase_receipt.py5489 # Create a Company without Stock Accounts Linked.
MEDIUMerpnext/stock/doctype/stock_entry/test_stock_entry.py2218 # Create a Material Request for Material Transfer
MEDIUMerpnext/controllers/tests/test_accounts_controller.py940 # Create a Sales Taxes and Charges Template
MEDIUMerpnext/controllers/tests/test_accounts_controller.py956 # Create a Sales Invoice
MEDIUMerpnext/controllers/tests/test_accounts_controller.py972 # Create a Sales Invoice
MEDIUMerpnext/controllers/tests/test_accounts_controller.py2253 # Create a sales order with discount amount
MEDIUMerpnext/controllers/tests/test_accounts_controller.py2289 # Create a purchase order with discount amount
MEDIUMerpnext/controllers/tests/test_accounts_controller.py2325 # Create a sales order with discount amount
MEDIUMerpnext/controllers/tests/test_accounts_controller.py2363 # Create a sales order with discount percentage instead of amount
MEDIUMerpnext/assets/doctype/asset/asset.py1481 # Create a new depreciation schedule based on the current one
Redundant / Tautological Comments73 hits · 115 pts
SeverityFileLineSnippet
LOWerpnext/buying/utils.py40 # Check if item code is present
LOW…t/buying/doctype/purchase_order/test_purchase_order.py1289 # Check if the billed amount reduced
LOW…t/buying/doctype/purchase_order/test_purchase_order.py1302 # Check if the billed amount stayed the same
LOW…ort/customer_credit_balance/customer_credit_balance.py15 # Check if customer id is according to naming series or customer name
LOWerpnext/selling/doctype/quotation/quotation.py579 # Check if a Customer already exists for the Lead or Prospect.
LOWerpnext/selling/doctype/sales_order/test_sales_order.py312 # Check if payment terms are copied from sales order to sales invoice
LOWerpnext/selling/doctype/sales_order/test_sales_order.py328 # Check if payment terms are not copied from sales order to sales invoice
LOWerpnext/selling/doctype/sales_order/test_sales_order.py1526 # Check if Work Orders were raised
LOW…agement/doctype/quality_procedure/quality_procedure.py63 # Check if any child process belongs to another parent.
LOW…pnext/patches/v15_0/link_purchase_item_to_asset_doc.py64 # Check if the asset is grouped
LOWerpnext/patches/v13_0/update_member_email_address.py15 # Check if email_id already exists
LOWerpnext/crm/doctype/appointment/appointment.py78 # Set status to unverified
LOW…saction_deletion_record/transaction_deletion_record.py400 # Check if doctype exists and is not a child table or virtual
LOW…saction_deletion_record/transaction_deletion_record.py543 if "company" in db_company_fields: # Check if 'company' is a valid field
LOWerpnext/manufacturing/doctype/job_card/test_job_card.py326 # Check if 'For Quantity' is negative
LOWerpnext/www/book_appointment/index.py63 # Check if holiday
LOW…ort/customer_ledger_summary/customer_ledger_summary.py283 # Check if this is a direct return invoice (most specific condition first)
LOW…ort/customer_ledger_summary/customer_ledger_summary.py286 # Check if this entry is against a return invoice
LOWerpnext/accounts/report/balance_sheet/balance_sheet.py170 # Check if previous year balance sheet closed
LOW…ce_creation_tool/test_opening_invoice_creation_tool.py47 # Check if update stock is not enabled
LOW…ce_creation_tool/test_opening_invoice_creation_tool.py101 # Check if missing debit account error raised
LOW…unts/doctype/bank_transaction/test_bank_transaction.py107 # Check if ERPNext can correctly filter a linked payments based on the debit/credit amount
LOW…bank_statement_import_log/bank_statement_import_log.py337 # Check if date column is a valid date
LOW…bank_statement_import_log/bank_statement_import_log.py343 # Check if either the amount, withdrawal or deposit column is a valid number
LOW…bank_statement_import_log/bank_statement_import_log.py643 # Check if there's an amount column
LOW…bank_statement_import_log/bank_statement_import_log.py657 # Check if there's a debit_credit column containing "cr"/"dr"
LOW…/payment_reconciliation/test_payment_reconciliation.py843 # Check if difference journal entry gets generated for difference amount after reconciliation
LOW…/payment_reconciliation/test_payment_reconciliation.py937 # Check if difference journal entry gets generated for difference amount after reconciliation
LOW…t/accounts/doctype/sales_invoice/test_sales_invoice.py2008 # Check if SO is unlinked/replaced by SI in PE & if SO advance paid is 0
LOW…t/accounts/doctype/sales_invoice/test_sales_invoice.py2885 # Check if adjustment entry is created
LOW…t/accounts/doctype/sales_invoice/test_sales_invoice.py3946 # Check if loyalty points are applied correctly
LOWerpnext/accounts/doctype/sales_invoice/sales_invoice.py2333 # Check if outstanding amount is 0 due to credit note issued against invoice
LOW…/cost_center_allocation/test_cost_center_allocation.py95 # Check if any child cost center is used as main cost center in any other existing allocation
LOW…ctype/cost_center_allocation/cost_center_allocation.py69 # Check if GLE exists against the main cost center
LOW…ctype/cost_center_allocation/cost_center_allocation.py89 # Check if there are any future existing allocation records against the main cost center
LOW…ctype/cost_center_allocation/cost_center_allocation.py143 # Check if child cost center is used as main cost center in any existing allocation
LOWerpnext/accounts/doctype/tax_rule/test_tax_rule.py389 # Check if accounts heads and rate fetched are also fetched from tax template or not
LOW…doctype/bank_transaction_rule/bank_transaction_rule.py56 # Set priority to 1 if no rules exist, otherwise increment by 1
LOW…unts/doctype/purchase_invoice/test_purchase_invoice.py103 # Check if the received quantity is updated in Material Request
LOW…/accounts/doctype/purchase_invoice/purchase_invoice.py889 # Check if there exists any item with cwip accounting enabled in it's asset category
LOW…/accounts/doctype/purchase_invoice/purchase_invoice.py1868 # Check if outstanding amount is 0 due to debit note issued against invoice
LOWerpnext/accounts/doctype/account/test_account.py170 # Check if renamed in children
LOWerpnext/accounts/doctype/account/account.py450 # Check if any previous balance exists
LOW…e/bank_reconciliation_tool/bank_reconciliation_tool.py715 # Check if this account is a Income or Expense Account
LOW…ype/service_level_agreement/service_level_agreement.py106 # Check if repeated priority
LOW…ype/service_level_agreement/service_level_agreement.py79 # Check if response and resolution time is set for every priority
LOW…type/maintenance_schedule/test_maintenance_schedule.py84 # Check if item is mapped in visit.
LOWerpnext/regional/italy/utils.py85 # Check if stamp duty (Bollo) of 2 EUR exists.
LOW…type/stock_reconciliation/test_stock_reconciliation.py337 # Check if Serial No from Stock Reconcilation is intact
LOW…type/stock_reconciliation/test_stock_reconciliation.py341 # Check if Serial No from Stock Entry is Unlinked and Inactive
LOWerpnext/stock/doctype/batch/test_batch.py197 # Set user to session user
LOWerpnext/stock/doctype/item/item.py921 # Check if old attributes were removed from the list
LOW…next/stock/doctype/delivery_note/test_delivery_note.py394 # Check if Original DN updated
LOW…next/stock/doctype/delivery_note/test_delivery_note.py402 # Check if unreturned amount is mapped in 2nd return
LOW…next/stock/doctype/delivery_note/test_delivery_note.py463 # Check if Original DN updated
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py4202 # Check if Original PR updated
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py4211 # Check if the first partial debit billing percentage got updated
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py4221 # Check if the second partial debit note billing percentage got updated
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py483 # Check if Original PR updated
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py492 # Check if unreturned amount is mapped in 2nd return
13 more matches not shown…
Verbosity Indicators38 hits · 61 pts
SeverityFileLineSnippet
LOW…ents/features/BankReconciliation/MatchAndReconcile.tsx779 // We need to check if the following details match:
LOWerpnext/patches/v15_0/update_invoice_remarks.py22 ### Step 1: Update remarks in GL Entries
LOWerpnext/patches/v15_0/update_invoice_remarks.py25 ### Step 2: Update remarks in Payment Ledger Entries
LOWerpnext/patches/v15_0/update_invoice_remarks.py28 ### Step 3: Update remarks in Sales Invoice
LOWerpnext/patches/v15_0/update_invoice_remarks.py55 ### Step 1: Update remarks in GL Entries
LOWerpnext/patches/v15_0/update_invoice_remarks.py58 ### Step 2: Update remarks in Payment Ledger Entries
LOWerpnext/patches/v15_0/update_invoice_remarks.py61 ### Step 3: Update remarks in Purchase Invoice
LOWerpnext/manufacturing/doctype/bom/test_bom.py623 # Step 1: Create BOM
LOWerpnext/manufacturing/doctype/bom/test_bom.py642 # Step 2: Uncheck is_active field
LOWerpnext/manufacturing/doctype/bom/test_bom.py648 # Step 3: Check is_active field
LOW…_withholding_category/test_tax_withholding_category.py2911 # Step 1: Create a Payment Entry with over withheld amount at 10% rate
LOW…_withholding_category/test_tax_withholding_category.py2919 # Step 2: Create Purchase Invoice with partial adjustment and manual rate change
LOW…_withholding_category/test_tax_withholding_category.py3032 # Step 1: Create a Payment Entry with over withheld amount at 10% rate
LOW…_withholding_category/test_tax_withholding_category.py3040 # Step 2: Create Purchase Invoice with partial adjustment and manual rate change
LOW…_withholding_category/test_tax_withholding_category.py2964 # Step 3: Verify the tax withholding entries
LOW…_withholding_category/test_tax_withholding_category.py3085 # Step 3: Verify the tax withholding entries
LOW…_withholding_category/test_tax_withholding_category.py3188 # Step 3: Verify the tax withholding entries on invoice
LOW…bank_statement_import_log/bank_statement_import_log.py194 # If cell is a string, then we need to check if it contains any of the keywords
LOW…ancial_report_template/test_financial_report_engine.py2077 # Step 1: opening JV in current year (FY 2024) — must be posted before PCV
LOW…ancial_report_template/test_financial_report_engine.py2091 # Step 2: opening JV in next year (FY 2025)
LOW…ancial_report_template/test_financial_report_engine.py2104 # Step 3: book Period Closing Voucher for previous year (FY 2023)
LOW…/subcontracting_receipt/test_subcontracting_receipt.py1378 # Step 1: Create Subcontracting Receipt with rejected quantity
LOW…/subcontracting_receipt/test_subcontracting_receipt.py1392 # Step 2: Create Subcontract Return from Rejected Warehouse
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py1853 # Step 1: Create Item
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py1856 # Step 2: Create Stock Entry (Material Receipt)
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py2061 # Step 1: Create Purchase Receipt with valuation rate 100
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py2071 # Step 2: Create One more Purchase Receipt with valuation rate 200
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py2081 # Step 3: Create Purchase Return for 2 qty
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py1868 # Step 3: Create Delivery Note with Internal Customer
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py1883 # Step 4: Create Internal Purchase Receipt
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py1897 # Step 5: Test Over Receipt Allowance
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py2005 # Step 2: Create Stock Entry (Material Receipt)
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py2016 # Step 3: Create Delivery Note with Internal Customer
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py2031 # Step 4: Create Internal Purchase Receipt
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py2111 # Step 1: Create Purchase Receipt with valuation rate 100
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py2572 # Step 1: Create Purchase Receipt
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py2612 # Step 2: Create Purchase Receipt
LOW…tock/doctype/purchase_receipt/test_purchase_receipt.py3291 # Step 1: Create Purchase Receipt with valuation rate 100
Over-Commented Block47 hits · 44 pts
SeverityFileLineSnippet
LOWbanking/src/lib/namespace/sync.js61 }
LOWerpnext/edi/doctype/common_code/common_code.js1// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
LOW…_transaction_log_detail/bulk_transaction_log_detail.js1// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
LOW…/delivery_schedule_item/test_delivery_schedule_item.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOW…ctype/delivery_schedule_item/delivery_schedule_item.js1// Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
LOW…p/doctype/terms_and_conditions/terms_and_conditions.js1// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
LOWerpnext/setup/doctype/incoterm/incoterm.js1// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
LOWerpnext/setup/doctype/uom/uom.js1// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
LOW…production_schedule/test_master_production_schedule.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOW…ccount/test_workstation_operating_component_account.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOW…ent_account/workstation_operating_component_account.js1// Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
LOW…ting_component/test_workstation_operating_component.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOW…operating_component/workstation_operating_component.js1// Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
LOW…acturing/doctype/sales_forecast/test_sales_forecast.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOW…ring/doctype/workstation_cost/test_workstation_cost.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOW…facturing/doctype/workstation_cost/workstation_cost.js1// Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
LOWerpnext/public/js/utils/barcode_scanner.js21 this.prompt_qty = opts.prompt_qty;
LOW…ated_discount_mismatch/calculated_discount_mismatch.js1// Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
LOW…unts/report/accounts_receivable/accounts_receivable.py21 get_advance_payment_doctypes,
LOW…s/doctype/process_subscription/process_subscription.js1// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
LOW…doctype/ledger_health_monitor/ledger_health_monitor.js1// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
LOW…ts/doctype/pegged_currencies/test_pegged_currencies.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOW…ccounts/doctype/pegged_currencies/pegged_currencies.js1// Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
LOWerpnext/accounts/doctype/ledger_health/ledger_health.js1// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
LOW…closing_voucher/test_process_period_closing_voucher.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOW…doctype/subscription_settings/subscription_settings.js1// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
LOW…s/doctype/bank_account_balance/bank_account_balance.js1// Copyright (c) 2026, Frappe Technologies Pvt. Ltd. and contributors
LOWerpnext/accounts/doctype/bisect_nodes/bisect_nodes.js1// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
LOW…doctype/tax_withholding_group/tax_withholding_group.js1// Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
LOW…s/doctype/subscription_invoice/subscription_invoice.js1// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
LOW…doctype/pos_invoice_merge_log/pos_invoice_merge_log.py521 Splits invoices into multiple groups
LOW…/accounts/doctype/account_category/account_category.js1// Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
LOW…unts/doctype/account_category/test_account_category.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOWerpnext/support/doctype/issue/issue.js141 // if (frappe.model.can_create("Help Article")) {
LOW…xt/stock/doctype/item_lead_time/test_item_lead_time.py1# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
LOW…doctype/stock_closing_balance/stock_closing_balance.js1// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
LOW…/doctype/stock_ledger_entry/test_stock_ledger_entry.py781 # Run assertions
LOW…/doctype/stock_ledger_entry/test_stock_ledger_entry.py801 # )
LOW…/doctype/stock_ledger_entry/test_stock_ledger_entry.py821 # old3 = make_stock_entry(
LOW…/doctype/stock_ledger_entry/test_stock_ledger_entry.py841 # self.assertSLEs(
LOW…/doctype/stock_ledger_entry/test_stock_ledger_entry.py861 # "actual_qty": 10,
LOW…/doctype/stock_ledger_entry/test_stock_ledger_entry.py881 # },
LOW…/doctype/stock_ledger_entry/test_stock_ledger_entry.py901 # item_code=item_code, source=warehouse, qty=10, batch_no=batches[1]
LOWerpnext/startup/__init__.py1# ERPNext - web based ERP (http://erpnext.com)
LOWerpnext/assets/doctype/asset_activity/asset_activity.js1// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
LOW…ssets/doctype/asset_shift_factor/asset_shift_factor.js1// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
LOWerpnext/shopping_cart/__init__.py1# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
Unused Imports43 hits · 32 pts
SeverityFileLineSnippet
LOWerpnext/edi/doctype/code_list/code_list.py11
LOWerpnext/buying/doctype/purchase_order/purchase_order.py28
LOW…doctype/authorization_control/authorization_control.py19
LOW…facturing/doctype/bom_update_log/bom_updation_utils.py10
LOW…xt/manufacturing/doctype/work_order/test_work_order.py34
LOW…nufacturing/doctype/bom_update_tool/bom_update_tool.py8
LOWerpnext/accounts/utils.py47
LOW…stom_financial_statement/custom_financial_statement.py4
LOW…unts/report/accounts_receivable/accounts_receivable.py9
LOW…profit_and_loss_statement/profit_and_loss_statement.py9
LOWerpnext/accounts/report/balance_sheet/balance_sheet.py9
LOWerpnext/accounts/report/cash_flow/cash_flow.py13
LOW…/payment_reconciliation/test_payment_reconciliation.py6
LOW…/payment_reconciliation/test_payment_reconciliation.py10
LOW…/payment_reconciliation/test_payment_reconciliation.py18
LOWerpnext/stock/stock_ledger.py14
LOWerpnext/stock/doctype/serial_no/test_serial_no.py18
LOWerpnext/stock/doctype/stock_settings/stock_settings.py11
LOW…stock/doctype/stock_entry_detail/stock_entry_detail.py7
LOW…stock/doctype/stock_entry_detail/stock_entry_detail.py7
LOW…stock/doctype/stock_entry_detail/stock_entry_detail.py7
LOW…stock/doctype/stock_entry_detail/stock_entry_detail.py7
LOW…stock/doctype/stock_entry_detail/stock_entry_detail.py7
LOW…stock/doctype/stock_entry_detail/stock_entry_detail.py21
LOW…stock/doctype/stock_entry_detail/stock_entry_detail.py21
LOW…stock/doctype/quality_inspection/quality_inspection.py11
LOWerpnext/stock/doctype/stock_entry/stock_entry_utils.py14
LOWerpnext/stock/doctype/stock_entry/stock_entry.py13
LOWerpnext/stock/doctype/stock_entry/stock_entry.py14
LOWerpnext/stock/doctype/stock_entry/stock_entry.py14
LOWerpnext/stock/doctype/stock_entry/stock_entry.py14
LOWerpnext/stock/doctype/stock_entry/stock_entry.py14
LOWerpnext/stock/doctype/stock_entry/stock_entry.py31
LOWerpnext/stock/doctype/stock_entry/stock_entry.py31
LOWerpnext/stock/doctype/stock_entry/stock_entry.py39
LOWerpnext/stock/doctype/stock_entry/stock_entry.py40
LOWerpnext/stock/doctype/stock_entry/stock_entry.py48
LOWerpnext/stock/doctype/stock_entry/stock_entry.py48
LOWerpnext/stock/doctype/stock_entry/stock_entry.py48
LOWerpnext/stock/doctype/stock_entry/stock_entry.py48
LOWerpnext/stock/doctype/stock_entry/test_stock_entry.py28
LOWerpnext/controllers/queries.py12
LOWerpnext/controllers/queries.py16
Cross-Language Confusion4 hits · 18 pts
SeverityFileLineSnippet
HIGHerpnext/hooks.py226 "condition": "eval: frappe.boot.sysdefaults.demo_company && frappe.boot.sysdefaults.demo_company.length > 0",
HIGH…nancial_report_template/financial_report_validation.py258 message=f"Line References undefined in Formula: {', '.join(undefined)}",
HIGH…nancial_report_template/financial_report_validation.py324 message=f"Formula references undefined codes: {', '.join(undefined)}",
HIGHerpnext/stock/reorder_item.py195 and (warehouse != '' and warehouse is not null)""".format(
Fake / Example Data10 hits · 9 pts
SeverityFileLineSnippet
LOWerpnext/selling/doctype/customer/test_customer.py343 first, middle, last = parse_full_name("John Doe")
LOWerpnext/setup/setup_wizard/data/sample_blog_post.html3<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore m
LOWerpnext/setup/setup_wizard/data/sample_blog_post.html3<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore m
LOW…report/accounts_receivable/test_accounts_receivable.py778 "customer_name": "Jane Doe",
LOW…report/accounts_receivable/test_accounts_receivable.py997 "customer_name": "Jane Doe",
LOW…counts/doctype/payment_request/test_payment_request.py238 recipient_id="user@example.com",
LOW…counts/doctype/payment_request/test_payment_request.py263 recipient_id="user@example.com",
LOW…counts/doctype/payment_request/test_payment_request.py282 recipient_id="user@example.com",
LOW…counts/doctype/payment_request/test_payment_request.py1786 "address_line1": "123 Main St",
LOW…counts/doctype/payment_request/test_payment_request.py1809 self.assertEqual(address.get("address_line1"), "123 Main St")
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippet
MEDIUM…_quotation_comparison/supplier_quotation_comparison.py141 group_entries = group_wise_map[group] # all entries pertaining to item/supplier
LOWerpnext/accounts/general_ledger.py285 # if there is already an entry in this account then just add it
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOW…saction_deletion_record/transaction_deletion_record.py594 def execute_task(self, task_to_execute: str | None = None):