Skip to content

Commit

Permalink
fix(invoices): show the correct error text
Browse files Browse the repository at this point in the history
This commit fixes the error text on the invoice page so that it shows
the correct global error message for missing sales account.

Fixes #989.
  • Loading branch information
Jonathan Niles authored and sfount committed Dec 1, 2016
1 parent a5a7d22 commit 3696afb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/js/services/PatientInvoiceItemService.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ function PatientInvoiceItemService(uuid) {

// possible validation messages
if (!item._initialised) {
item._message = 'PATIENT_INVOICE.ERRORS.MISSING_SALES_ACCOUNT';
} else if (!hasSalesAccount) {
item._message = 'PATIENT_INVOICE.ERRORS.NOT_CONFIGURED';
} else if (!hasSalesAccount) {
item._message = 'PATIENT_INVOICE.ERRORS.MISSING_SALES_ACCOUNT';
} else {
item._message = 'PATIENT_INVOICE.ERRORS.INVALID_NUMBERS';
}
Expand Down

0 comments on commit 3696afb

Please sign in to comment.