Skip to content

Commit

Permalink
minor test fixes
Browse files Browse the repository at this point in the history
nabinhait committed May 29, 2018

Verified

This commit was signed with the committer’s verified signature.
mganjoo Milind Ganjoo
1 parent bd2989a commit 153536b
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -207,6 +207,7 @@ def invoice_appointment(appointment_doc):
sales_invoice.appointment = appointment_doc.name
sales_invoice.due_date = getdate()
sales_invoice.is_pos = '0'
sales_invoice.company = appointment_doc.company
sales_invoice.debit_to = get_receivable_account(appointment_doc.company)

fee_validity = get_fee_validity(appointment_doc.physician, appointment_doc.patient, appointment_doc.appointment_date)
2 changes: 1 addition & 1 deletion erpnext/projects/doctype/timesheet/test_timesheet.py
Original file line number Diff line number Diff line change
@@ -159,6 +159,7 @@ def make_timesheet(employee, simulate=False, billable = 0, activity_type="_Test
update_activity_type(activity_type)
timesheet = frappe.new_doc("Timesheet")
timesheet.employee = employee
timesheet.company = company or '_Test Company'
timesheet_detail = timesheet.append('time_logs', {})
timesheet_detail.billable = billable
timesheet_detail.activity_type = activity_type
@@ -167,7 +168,6 @@ def make_timesheet(employee, simulate=False, billable = 0, activity_type="_Test
timesheet_detail.to_time = timesheet_detail.from_time + datetime.timedelta(hours= timesheet_detail.hours)
timesheet_detail.project = project
timesheet_detail.task = task
timesheet_detail.company = company or '_Test Company'

for data in timesheet.get('time_logs'):
if simulate:
4 changes: 0 additions & 4 deletions erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
@@ -589,10 +589,6 @@ def update_item(source, target, source_parent):
"Sales Team": {
"doctype": "Sales Team",
"add_if_empty": True
},
"Payment Schedule": {
"doctype": "Payment Schedule",
"add_if_empty": True
}
}, target_doc, postprocess, ignore_permissions=ignore_permissions)

0 comments on commit 153536b

Please sign in to comment.