Skip to content

Commit

Permalink
fix: linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Jan 14, 2025
1 parent 2676e0e commit af21bca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions erpnext/stock/doctype/delivery_note/test_delivery_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -2406,10 +2406,6 @@ def test_auto_set_serial_batch_for_draft_dn(self):
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")
Expand Down
2 changes: 1 addition & 1 deletion erpnext/stock/get_item_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit af21bca

Please sign in to comment.