mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-31 15:32:27 +00:00
feat: added jinja method get_serial_or_batch_nos for print format and new print format 'Purchase Receipt Serial and Batch Bundle Print for reference
This commit is contained in:
@@ -296,6 +296,10 @@ def get_serial_nos_from_bundle(serial_and_batch_bundle, serial_nos=None):
|
||||
return get_serial_nos(serial_and_batch_bundle, serial_nos=serial_nos)
|
||||
|
||||
|
||||
def get_serial_or_batch_nos(bundle):
|
||||
return frappe.get_all("Serial and Batch Entry", fields=["*"], filters={"parent": bundle})
|
||||
|
||||
|
||||
class SerialNoValuation(DeprecatedSerialNoValuation):
|
||||
def __init__(self, **kwargs):
|
||||
for key, value in kwargs.items():
|
||||
|
||||
Reference in New Issue
Block a user