brotherton-erpnext/erpnext/patches/v13_0
Ankush Menat a3ea985348
refactor: Use db.set_single_value (#35668)
I just applied semgrep autofix. Untested completed, review before merging.

```yaml
- id: frappe-set-value-semantics
  patterns:
    - pattern-either:
      - pattern: frappe.db.set_value($DOCTYPE, None, $...AFTER)
      - pattern: frappe.db.set_value($DOCTYPE, $DOCTYPE, $...AFTER)
  fix: frappe.db.set_single_value($DOCTYPE, $...AFTER)
  message: |
    If $DOCTYPE is a single doctype then using `frappe.db.set_value` is discouraged for setting values in DB. Use db.set_single_value for single doctype instead.
  languages: [python]
  severity: ERROR
```
2023-06-13 17:30:38 +05:30
..
add_bin_unique_constraint.py refactor: backport old subcontracting code 2022-06-20 23:10:02 +05:30
add_cost_center_in_loans.py style: format code with black 2022-03-28 18:52:46 +05:30
add_custom_field_for_south_africa.py style: format code with black 2022-03-28 18:52:46 +05:30
add_doctype_to_sla.py fix(patch): update sla doctype directly (#32014) 2022-08-29 20:50:27 +05:30
add_missing_fg_item_for_stock_entry.py refactor: added new file serial batch bundle 2023-06-02 17:14:14 +05:30
add_naming_series_to_old_projects.py style: format code with black 2022-03-28 18:52:46 +05:30
add_po_to_global_search.py style: format code with black 2022-03-28 18:52:46 +05:30
add_standard_navbar_items.py chore: remove all six compat code 2021-11-05 11:16:29 +05:30
agriculture_deprecation_warning.py refactor: Removed agriculture module from ERPNext (#29022) 2022-01-04 17:26:11 +05:30
bill_for_rejected_quantity_in_purchase_invoice.py chore: remove all six compat code 2021-11-05 11:16:29 +05:30
change_default_item_manufacturer_fieldtype.py fix: convert default_item_manufacturer to link field (#30835) 2022-05-02 13:58:22 +05:30
change_default_pos_print_format.py style: format code with black 2022-03-28 18:52:46 +05:30
convert_qi_parameter_to_link_field.py style: format code with black 2022-03-28 18:52:46 +05:30
convert_to_website_item_in_item_card_group_template.py fix(minor): update frappe.error_log to new API (#30864) 2022-05-02 15:04:26 +05:30
copy_custom_field_filters_to_website_item.py fix: use kwargs in new_doc (#35497) 2023-05-31 12:50:14 +05:30
create_accounting_dimensions_for_asset_repair.py chore: patch for creating existing dimensions in asset repair 2022-08-05 15:22:38 +05:30
create_accounting_dimensions_in_orders.py fix: Patch to make accounting dimension in orders 2022-07-20 18:59:36 +05:30
create_accounting_dimensions_in_pos_doctypes.py style: format code with black 2022-03-28 18:52:46 +05:30
create_custom_field_for_finance_book.py style: format code with black 2022-03-28 18:52:46 +05:30
create_gst_payment_entry_fields.py style: format code with black 2022-03-28 18:52:46 +05:30
create_uae_pos_invoice_fields.py style: format code with black 2022-03-28 18:52:46 +05:30
create_website_items.py chore: Make image field obsolete in Website Item (redundant) 2022-06-27 13:00:00 +05:30
delete_bank_reconciliation_detail.py style: format code with black 2022-03-28 18:52:46 +05:30
delete_old_bank_reconciliation_doctypes.py style: format code with black 2022-03-28 18:52:46 +05:30
delete_old_purchase_reports.py fix: forced delete linked desktop_icons (#34107) 2023-02-19 11:42:35 +05:30
delete_old_sales_reports.py fix: force delete old report docs (#32026) 2022-08-30 15:43:57 +05:30
delete_orphaned_tables.py style: format code with black 2022-03-28 18:52:46 +05:30
delete_report_requested_items_to_order.py style: format code with black 2022-03-28 18:52:46 +05:30
drop_razorpay_payload_column.py style: format code with black 2022-03-28 18:52:46 +05:30
drop_unused_sle_index_parts.py perf: Drop name part from posting sort index (#33551) 2023-01-10 09:54:15 +05:30
enable_provisional_accounting.py style: format code with black 2022-03-28 18:52:46 +05:30
enable_scheduler_job_for_item_reposting.py style: format code with black 2022-03-28 18:52:46 +05:30
enable_uoms.py style: format code with black 2022-03-28 18:52:46 +05:30
fetch_thumbnail_in_website_items.py style: format code with black 2022-03-28 18:52:46 +05:30
fix_additional_cost_in_mfg_stock_entry.py fix: distribution of additional costs in mfg stock entry (#27629) 2021-09-30 09:58:59 +05:30
fix_invoice_statuses.py style: format code with black 2022-03-28 18:52:46 +05:30
fix_non_unique_represents_company.py style: format code with black 2022-03-28 18:52:46 +05:30
fix_number_and_frequency_for_monthly_depreciation.py fix: Removed 'Allow Monthly Depreciation' checkbox 2022-07-20 14:27:06 +05:30
healthcare_deprecation_warning.py chore: Added healthcare deprecation warning patch 2021-09-02 20:02:11 +05:30
hospitality_deprecation_warning.py refactor: Removed hospitality domain from ERPNext (#29167) 2022-01-20 11:57:22 +05:30
item_naming_series_not_mandatory.py refactor!: drop naming series tool (#31183) 2022-05-31 15:35:40 +05:30
item_reposting_for_incorrect_sl_and_gl.py fix: patch item_reposting_for_incorrect_sl_and_gl 2023-01-17 11:47:53 +05:30
job_card_status_on_hold.py fix(job card): only hold during draft state (#31243) 2022-06-06 16:27:25 +05:30
loyalty_points_entry_for_pos_invoice.py style: format code with black 2022-03-28 18:52:46 +05:30
make_homepage_products_website_items.py style: format code with black 2022-03-28 18:52:46 +05:30
migrate_stripe_api.py fix: use Stripe's Price API for plan-price information (#26107) 2021-08-26 21:47:00 +05:30
modify_invalid_gain_loss_gl_entries.py refactor: Use db.set_single_value (#35668) 2023-06-13 17:30:38 +05:30
move_branch_code_to_bank_account.py style: format code with black 2022-03-28 18:52:46 +05:30
non_profit_deprecation_warning.py fix: deprecation warning 2022-02-24 17:57:39 +05:30
populate_e_commerce_settings.py style: format code with black 2022-03-28 18:52:46 +05:30
remove_attribute_field_from_item_variant_setting.py style: format code with black 2022-03-28 18:52:46 +05:30
remove_bad_selling_defaults.py style: format code with black 2022-03-28 18:52:46 +05:30
remove_unknown_links_to_prod_plan_items.py style: format code with black 2022-03-28 18:52:46 +05:30
rename_issue_doctype_fields.py style: format code with black 2022-03-28 18:52:46 +05:30
rename_issue_status_hold_to_on_hold.py style: format code with black 2022-03-28 18:52:46 +05:30
rename_membership_settings_to_non_profit_settings.py style: format code with black 2022-03-28 18:52:46 +05:30
replace_pos_page_with_point_of_sale_page.py chore: remove all six compat code 2021-11-05 11:16:29 +05:30
replace_pos_payment_mode_table.py style: format code with black 2022-03-28 18:52:46 +05:30
replace_supplier_item_group_with_party_specific_item.py style: format code with black 2022-03-28 18:52:46 +05:30
requeue_failed_reposts.py style: format code with black 2022-03-28 18:52:46 +05:30
requeue_recoverable_reposts.py fix: dont fail repost for recoverable errors (#30979) 2022-05-16 11:23:35 +05:30
reset_clearance_date_for_intracompany_payment_entries.py style: format code with black 2022-03-28 18:52:46 +05:30
reset_corrupt_defaults.py fix: ensure defaults removed in bad frappe patch get set again (#31659) 2022-07-21 13:32:03 +05:30
set_app_name.py chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
set_operation_time_based_on_operating_cost.py style: format code with black 2022-03-28 18:52:46 +05:30
set_payment_channel_in_payment_gateway_account.py style: format code with black 2022-03-28 18:52:46 +05:30
set_per_billed_in_return_delivery_note.py fix: per_billed for return DN (#30868) 2022-05-11 16:49:28 +05:30
set_pos_closing_as_failed.py style: format code with black 2022-03-28 18:52:46 +05:30
set_return_against_in_pos_invoice_references.py style: format code with black 2022-03-28 18:52:46 +05:30
set_status_in_maintenance_schedule_table.py style: format code with black 2022-03-28 18:52:46 +05:30
set_work_order_qty_in_so_from_mr.py style: format code with black 2022-03-28 18:52:46 +05:30
set_youtube_video_id.py style: format code with black 2022-03-28 18:52:46 +05:30
setup_uae_vat_fields.py style: format code with black 2022-03-28 18:52:46 +05:30
shopify_deprecation_warning.py chore: Clean up imports (#27302) 2021-09-02 16:44:59 +05:30
shopping_cart_to_ecommerce.py fix: Ignore mandatory fields if exist (#27871) 2022-02-03 14:08:32 +05:30
show_hr_payroll_deprecation_warning.py patch: Add HR & Payroll deprecation warning 2022-07-19 13:19:34 +05:30
show_india_localisation_deprecation_warning.py fix: unlink custom fields in patch 2022-07-14 15:02:37 +05:30
stock_entry_enhancements.py style: format code with black 2022-03-28 18:52:46 +05:30
trim_whitespace_from_serial_nos.py style: format code with black 2022-03-28 18:52:46 +05:30
update_accounts_in_loan_docs.py style: format code with black 2022-03-28 18:52:46 +05:30
update_actual_start_and_end_date_in_wo.py style: format code with black 2022-03-28 18:52:46 +05:30
update_amt_in_work_order_required_items.py fix: consider 0 if rate/qty are null (#35338) 2023-05-17 16:04:49 +05:30
update_asset_quantity_field.py style: format code with black 2022-03-28 18:52:46 +05:30
update_category_in_ltds_certificate.py style: format code with black 2022-03-28 18:52:46 +05:30
update_dates_in_tax_withholding_category.py style: format code with black 2022-03-28 18:52:46 +05:30
update_deferred_settings.py style: format code with black 2022-03-28 18:52:46 +05:30
update_disbursement_account.py style: format code with black 2022-03-28 18:52:46 +05:30
update_docs_link.py chore: Update user manual link (#34478) 2023-03-17 15:39:33 +05:30
update_exchange_rate_settings.py fix: reload currency exchange settings 2022-11-28 22:58:31 +01:00
update_job_card_details.py style: format code with black 2022-03-28 18:52:46 +05:30
update_job_card_status.py style: format code with black 2022-03-28 18:52:46 +05:30
update_maintenance_schedule_field_in_visit.py style: format code with black 2022-03-28 18:52:46 +05:30
update_member_email_address.py chore: remove utf-8 compat code 2021-11-05 11:16:29 +05:30
update_old_loans.py fix: Disbursement Account in patch to update old loans 2022-09-28 15:36:59 +05:30
update_payment_terms_outstanding.py style: format code with black 2022-03-28 18:52:46 +05:30
update_pos_closing_entry_in_merge_log.py style: format code with black 2022-03-28 18:52:46 +05:30
update_project_template_tasks.py style: format code with black 2022-03-28 18:52:46 +05:30
update_recipient_email_digest.py style: format code with black 2022-03-28 18:52:46 +05:30
update_reserved_qty_closed_wo.py style: format code with black 2022-03-28 18:52:46 +05:30
update_response_by_variance.py style: format code with black 2022-03-28 18:52:46 +05:30
update_returned_qty_in_pr_dn.py style: format code with black 2022-03-28 18:52:46 +05:30
update_sane_transfer_against.py style: format code with black 2022-03-28 18:52:46 +05:30
update_schedule_type_in_loans.py chore: Add patch to update repayment schedule type in loan documents 2022-09-30 14:06:06 +05:30
update_shipment_status.py style: format code with black 2022-03-28 18:52:46 +05:30
update_sla_enhancements.py style: format code with black 2022-03-28 18:52:46 +05:30
update_subscription_status_in_memberships.py style: format code with black 2022-03-28 18:52:46 +05:30
update_subscription.py style: format code with black 2022-03-28 18:52:46 +05:30
update_tds_check_field.py style: format code with black 2022-03-28 18:52:46 +05:30
update_timesheet_changes.py style: format code with black 2022-03-28 18:52:46 +05:30
update_vehicle_no_reqd_condition.py style: format code with black 2022-03-28 18:52:46 +05:30
wipe_serial_no_field_for_0_qty.py style: format code with black 2022-03-28 18:52:46 +05:30