|
|
@ -310,7 +310,7 @@ var allColumns = [ |
|
|
|
${html} |
|
|
|
${html} |
|
|
|
</div>` |
|
|
|
</div>` |
|
|
|
} }, |
|
|
|
} }, |
|
|
|
{ name: "expenses", label: "Other Expense", align: "center", min_width: 150, resize: true, template: function (text) { |
|
|
|
{ name: "expenses", label: "Overhead", align: "center", min_width: 150, resize: true, template: function (text) { |
|
|
|
if(text.type=="project" || text.type=="milestone" || text.type=="header"){ |
|
|
|
if(text.type=="project" || text.type=="milestone" || text.type=="header"){ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -318,10 +318,10 @@ var allColumns = [ |
|
|
|
var assign_expense = text.assign_expense |
|
|
|
var assign_expense = text.assign_expense |
|
|
|
|
|
|
|
|
|
|
|
if(!assign_expense || !assign_expense.length){ |
|
|
|
if(!assign_expense || !assign_expense.length){ |
|
|
|
html = `<span class="badge badge-pill badge-danger">No Expense</span>`; |
|
|
|
html = `<span class="badge badge-pill badge-danger">No Overhead</span>`; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
if(assign_expense.length > 0 ){ |
|
|
|
if(assign_expense.length > 0 ){ |
|
|
|
html = `<span class="text-capitalize badge badge-pill badge-primary">See Expense</span>`; |
|
|
|
html = `<span class="text-capitalize badge badge-pill badge-primary">See Overhead</span>`; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return `<div class="d-flex justify-content-center align-items-center" data-toggle="modal" data-target="#modal-expense" style="min-width:100%;height:100%;">
|
|
|
|
return `<div class="d-flex justify-content-center align-items-center" data-toggle="modal" data-target="#modal-expense" style="min-width:100%;height:100%;">
|
|
|
|