Skip to content

Commit

Permalink
fix: set insurance claim update_status button as primary action
Browse files Browse the repository at this point in the history
color indicators
  • Loading branch information
akurungadam committed Jan 25, 2022
1 parent 1bfd99f commit 241c4ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -50,7 +50,7 @@ frappe.ui.form.on('Insurance Claim', {
}

if (frm.doc.docstatus == 1 && ['Submitted', 'Error'].includes(frm.doc.status)) {
frm.fields_dict["coverages"].grid.add_custom_button(__('Update Coverages'), () => {
frm.page.set_primary_action(__('Update Claim Status'), () => {
frm.events.update_status(frm);
});
}
Expand Down
Expand Up @@ -2,7 +2,7 @@ frappe.listview_settings['Insurance Claim'] = {
add_fields: ['status'],
get_indicator: function(doc) {
return [__(doc.status), {
'Draft': 'lightblue',
'Draft': 'light-blue',
'Submitted': 'blue',
'Completed': 'green',
'Cancelled': 'darkgrey',
Expand Down
Expand Up @@ -7,8 +7,8 @@ frappe.listview_settings['Patient Insurance Coverage'] = {
'Approved': 'blue',
'Cancelled': 'grey',
'Rejected': 'darkgrey',
'Invoiced': 'lightblue',
'Partly Invoiced': 'lightblue',
'Invoiced': 'light-blue',
'Partly Invoiced': 'light-blue',
'Claim Submitted': 'blue',
'Claim Approved': 'blue',
'Claim Error': 'red',
Expand Down

0 comments on commit 241c4ca

Please sign in to comment.