mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
fix: flaky demo test case
(cherry picked from commit 5b1571879c)
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
This commit is contained in:
@@ -149,6 +149,11 @@ def convert_order_to_invoices():
|
||||
invoice.set_posting_time = 1
|
||||
invoice.posting_date = order.transaction_date
|
||||
invoice.due_date = order.transaction_date
|
||||
invoice.bill_date = order.transaction_date
|
||||
|
||||
if invoice.get("payment_schedule"):
|
||||
invoice.payment_schedule[0].due_date = order.transaction_date
|
||||
|
||||
invoice.update_stock = 1
|
||||
invoice.submit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user