Files
erpnext/erpnext/patches/v15_0/enable_allow_existing_serial_no.py
mergify[bot] bdb60a51c3 fix: do not allow to inward same serial nos multiple times (backport #44617) (#44619)
* fix: do not allow to inward same serial nos multiple times (#44617)

(cherry picked from commit 616bb383c5)

# Conflicts:
#	erpnext/patches.txt

* chore: fix conflicts

---------

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
2024-12-09 20:30:45 +05:30

7 lines
179 B
Python

import frappe
def execute():
if frappe.get_all("Company", filters={"country": "India"}, limit=1):
frappe.db.set_single_value("Stock Settings", "allow_existing_serial_no", 1)