Skip to content

Commit

Permalink
(fix) Fixed billable services not displaying in start visit form (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
CynthiaKamau authored Feb 27, 2024
1 parent 9014628 commit 5bd1faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/billing-form/billing-checkin-form.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const BillingCheckInForm: React.FC<BillingCheckInFormProps> = ({ patientUuid, se
if (paymentMethod) {
lineList = [];
lineList = lineItems.filter((e) =>
e.servicePrices.some((p) => p.paymentMode && p.paymentMode.uuid === paymentMethod),
e.servicePrices.some((p) => p.paymentMode && p.paymentMode.uuid === paymentMethod?.paymentMethods),
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/functions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Payment, type LineItem } from '../types';
import {type ConfigObject } from '../config-schema';
import { type ConfigObject } from '../config-schema';
import { useConfig } from '@openmrs/esm-framework';

// amount already paid
Expand Down

0 comments on commit 5bd1faf

Please sign in to comment.