refactor: sample retention stock entry

This commit is contained in:
Mihir Kandoi
2026-01-12 18:28:34 +05:30
parent 5ebaee03da
commit 8d188cd32b
3 changed files with 32 additions and 28 deletions

View File

@@ -1116,7 +1116,7 @@ class SerialBatchCreation:
id = self.serial_and_batch_bundle
package = frappe.get_doc("Serial and Batch Bundle", id)
new_package = frappe.copy_doc(package)
new_package = frappe.copy_doc(package, ignore_no_copy=False)
if self.get("returned_serial_nos"):
self.remove_returned_serial_nos(new_package)