add date data [mandatory]
This commit is contained in:
parent
90cf2ddc01
commit
622bd10946
@ -9,7 +9,7 @@ import erpnext
|
||||
import frappe
|
||||
from erpnext.stock.doctype.delivery_trip.delivery_trip import get_contact_and_address, notify_customers
|
||||
from erpnext.tests.utils import create_test_contact_and_address
|
||||
from frappe.utils import add_days, now_datetime
|
||||
from frappe.utils import add_days, now_datetime, nowdate
|
||||
|
||||
|
||||
class TestDeliveryTrip(unittest.TestCase):
|
||||
@ -26,6 +26,7 @@ class TestDeliveryTrip(unittest.TestCase):
|
||||
delivery_trip = frappe.get_doc({
|
||||
"doctype": "Delivery Trip",
|
||||
"company": erpnext.get_default_company(),
|
||||
"date": add_days(nowdate(), 5),
|
||||
"departure_time": add_days(now_datetime(), 5),
|
||||
"driver": "DRIVER-00001",
|
||||
"vehicle": "JB 007",
|
||||
|
Loading…
x
Reference in New Issue
Block a user