fix: do not auto-populate item delivery date

This commit is contained in:
Gursheen Anand 2024-01-29 13:15:00 +05:30
parent efade9b9ae
commit 49cb11c1f3

View File

@ -391,7 +391,6 @@ def _make_sales_order(source_name, target_doc=None, ignore_permissions=False):
balance_qty = obj.qty - ordered_items.get(obj.item_code, 0.0)
target.qty = balance_qty if balance_qty > 0 else 0
target.stock_qty = flt(target.qty) * flt(obj.conversion_factor)
target.delivery_date = nowdate()
if obj.against_blanket_order:
target.against_blanket_order = obj.against_blanket_order