fix: linter issue

This commit is contained in:
Rohit Waghchaure
2025-01-14 17:15:23 +05:30
parent 2676e0ea1f
commit af21bca231
2 changed files with 1 additions and 5 deletions

View File

@@ -2406,10 +2406,6 @@ class TestDeliveryNote(FrappeTestCase):
if row.item_code == serial_item.name:
self.assertTrue(row.serial_no)
if row.item_code == batch_serial_item.name:
self.assertTrue(row.batch_no)
self.assertTrue(row.serial_no)
def create_delivery_note(**args):
dn = frappe.new_doc("Delivery Note")

View File

@@ -121,7 +121,7 @@ def get_item_details(args, doc=None, for_validate=False, overwrite_warehouse=Tru
and (args.get("use_serial_batch_fields") or args.get("doctype") == "POS Invoice")
):
update_stock(args, out, doc)
if args.transaction_date and item.lead_time_days:
out.schedule_date = out.lead_time_date = add_days(args.transaction_date, item.lead_time_days)