Skip to content

Commit b84fd46

Browse files
kavin-114mergify[bot]
authored andcommitted
feat(credit-note): add checkbox to set valuation rate as zero for expired batch
(cherry picked from commit 04cdf88)
1 parent b285548 commit b84fd46

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

erpnext/selling/doctype/selling_settings/selling_settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"enable_cutoff_date_on_bulk_delivery_note_creation",
4040
"allow_zero_qty_in_quotation",
4141
"allow_zero_qty_in_sales_order",
42+
"set_zero_rate_for_expired_batch",
4243
"experimental_section",
4344
"use_legacy_js_reactivity",
4445
"subcontracting_inward_tab",
@@ -289,6 +290,13 @@
289290
"fieldname": "use_legacy_js_reactivity",
290291
"fieldtype": "Check",
291292
"label": "Use Legacy (Client side) Reactivity"
293+
},
294+
{
295+
"default": "0",
296+
"description": "If enabled, system will set incoming rate as zero for stand-alone credit notes with expired batch item.",
297+
"fieldname": "set_zero_rate_for_expired_batch",
298+
"fieldtype": "Check",
299+
"label": "Set Incoming Rate as Zero for Expired Batch"
292300
}
293301
],
294302
"grid_page_length": 50,
@@ -298,7 +306,7 @@
298306
"index_web_pages_for_search": 1,
299307
"issingle": 1,
300308
"links": [],
301-
"modified": "2026-01-21 17:28:37.027837",
309+
"modified": "2026-01-23 00:04:33.105916",
302310
"modified_by": "Administrator",
303311
"module": "Selling",
304312
"name": "Selling Settings",

erpnext/selling/doctype/selling_settings/selling_settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class SellingSettings(Document):
4444
role_to_override_stop_action: DF.Link | None
4545
sales_update_frequency: DF.Literal["Monthly", "Each Transaction", "Daily"]
4646
selling_price_list: DF.Link | None
47+
set_zero_rate_for_expired: DF.Check
4748
so_required: DF.Literal["No", "Yes"]
4849
territory: DF.Link | None
4950
use_legacy_js_reactivity: DF.Check

0 commit comments

Comments
 (0)