Skip to content
Snippets Groups Projects
Commit b400496a authored by Shrikrishna Singh's avatar Shrikrishna Singh
Browse files

Add billable field to invoice call

parent 465020b7
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,9 @@ def get_deliverables_json(invoice):
'locationid': extra_info['LOCATIONID'],
'departmentid': extra_info['DEPARTMENTID'],
'projectid': extra_info['PROJECTID'],
'customerid': extra_info['CUSTOMERID'],
'classid': extra_info['CLASSID'],
'billable': extra_info['BILLABLE'],
}
)
return deliverables_list
......
......@@ -11,6 +11,7 @@ dimensions_fields_mapping = {
'CLASSID',
'BILLABLE',
'DEPARTMENTID',
'CUSTOMERID',
],
'PODOCUMENT': [
'DOCNO',
......
......@@ -36,7 +36,8 @@ def save_deliverables(project_id, deliverables=[]):
'PROJECTID': deliverable['PROJECTID'],
'LOCATIONID': deliverable['LOCATIONID'],
'CLASSID': deliverable['CLASSID'],
'BILLABLE': deliverable['BILLABLE']
'BILLABLE': deliverable['BILLABLE'],
'CUSTOMERID': deliverable['CUSTOMERID'],
}
new_deliverable_list.append(
Deliverable(
......@@ -79,7 +80,7 @@ def save_project_details(project_id, data):
def create_invoice(invoice):
'''
Creates invoice at enabled payment service.
Creates invoice at enabled payment service.
'''
if settings.INTACCT_ENABLED:
from hypha.apply.projects.services.sageintacct.utils import (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment