@openmrs/esm-billing-app 1.1.2-pre.9 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/cache/31f1dfc7f71601df-meta.json +1 -0
- package/.turbo/cache/31f1dfc7f71601df.tar.zst +0 -0
- package/.turbo/turbo-build.log +13 -42
- package/__mocks__/bills.mock.ts +3 -2
- package/dist/1480.js +1 -0
- package/dist/1480.js.map +1 -0
- package/dist/1564.js +1 -0
- package/dist/1564.js.map +1 -0
- package/dist/1578.js +1 -0
- package/dist/1578.js.map +1 -0
- package/dist/1646.js +1 -0
- package/dist/1646.js.map +1 -0
- package/dist/1869.js +1 -0
- package/dist/1869.js.map +1 -0
- package/dist/1877.js +1 -0
- package/dist/1877.js.map +1 -0
- package/dist/1899.js +1 -0
- package/dist/1899.js.map +1 -0
- package/dist/196.js +2 -0
- package/dist/196.js.map +1 -0
- package/dist/2250.js +43 -0
- package/dist/2250.js.map +1 -0
- package/dist/2269.js +1 -0
- package/dist/2269.js.map +1 -0
- package/dist/2317.js +1 -0
- package/dist/2317.js.map +1 -0
- package/dist/2416.js +1 -0
- package/dist/2416.js.map +1 -0
- package/dist/2489.js +1 -0
- package/dist/2489.js.map +1 -0
- package/dist/282.js +1 -0
- package/dist/282.js.map +1 -0
- package/dist/2881.js +1 -0
- package/dist/2881.js.map +1 -0
- package/dist/2997.js +1 -0
- package/dist/2997.js.map +1 -0
- package/dist/3378.js +1 -0
- package/dist/3378.js.map +1 -0
- package/dist/3379.js +1 -0
- package/dist/3379.js.map +1 -0
- package/dist/3784.js +1 -0
- package/dist/3784.js.map +1 -0
- package/dist/3963.js +1 -0
- package/dist/3963.js.map +1 -0
- package/dist/4106.js +1 -0
- package/dist/4106.js.map +1 -0
- package/dist/4111.js +1 -0
- package/dist/4111.js.map +1 -0
- package/dist/434.js +1 -0
- package/dist/434.js.map +1 -0
- package/dist/4348.js +1 -0
- package/dist/4348.js.map +1 -0
- package/dist/4383.js +1 -0
- package/dist/4383.js.map +1 -0
- package/dist/4658.js +1 -0
- package/dist/4658.js.map +1 -0
- package/dist/4870.js +1 -0
- package/dist/4870.js.map +1 -0
- package/dist/4928.js +1 -0
- package/dist/4928.js.map +1 -0
- package/dist/5098.js +1 -0
- package/dist/5098.js.map +1 -0
- package/dist/5117.js +1 -0
- package/dist/5117.js.map +1 -0
- package/dist/5132.js +1 -0
- package/dist/5132.js.map +1 -0
- package/dist/5145.js +1 -0
- package/dist/5145.js.map +1 -0
- package/dist/5390.js +1 -0
- package/dist/5390.js.map +1 -0
- package/dist/5503.js +1 -0
- package/dist/5503.js.map +1 -0
- package/dist/556.js +1 -0
- package/dist/556.js.map +1 -0
- package/dist/5644.js +1 -0
- package/dist/5644.js.map +1 -0
- package/dist/5898.js +1 -0
- package/dist/5898.js.map +1 -0
- package/dist/5940.js +1 -0
- package/dist/5940.js.map +1 -0
- package/dist/6047.js +1 -0
- package/dist/6047.js.map +1 -0
- package/dist/6237.js +1 -0
- package/dist/6237.js.map +1 -0
- package/dist/6362.js +1 -0
- package/dist/6362.js.map +1 -0
- package/dist/6371.js +1 -0
- package/dist/6371.js.map +1 -0
- package/dist/6377.js +1 -0
- package/dist/6377.js.map +1 -0
- package/dist/6444.js +1 -0
- package/dist/6444.js.map +1 -0
- package/dist/6508.js +1 -0
- package/dist/6508.js.map +1 -0
- package/dist/6594.js +1 -0
- package/dist/6594.js.map +1 -0
- package/dist/6724.js +1 -0
- package/dist/6724.js.map +1 -0
- package/dist/6904.js +1 -0
- package/dist/6904.js.map +1 -0
- package/dist/7045.js +1 -0
- package/dist/7045.js.map +1 -0
- package/dist/7175.js +1 -0
- package/dist/7175.js.map +1 -0
- package/dist/7182.js +1 -0
- package/dist/7182.js.map +1 -0
- package/dist/7247.js +1 -0
- package/dist/7247.js.map +1 -0
- package/dist/7742.js +1 -0
- package/dist/7742.js.map +1 -0
- package/dist/7912.js +1 -0
- package/dist/7912.js.map +1 -0
- package/dist/8358.js +1 -0
- package/dist/8358.js.map +1 -0
- package/dist/8359.js +1 -0
- package/dist/8359.js.map +1 -0
- package/dist/8695.js +1 -0
- package/dist/8695.js.map +1 -0
- package/dist/903.js +1 -0
- package/dist/903.js.map +1 -0
- package/dist/9072.js +1 -0
- package/dist/9072.js.map +1 -0
- package/dist/9414.js +1 -0
- package/dist/9414.js.map +1 -0
- package/dist/9655.js +11 -0
- package/dist/9655.js.map +1 -0
- package/dist/9806.js +1 -0
- package/dist/9806.js.map +1 -0
- package/dist/990.js +1 -0
- package/dist/990.js.map +1 -0
- package/dist/main.js +17 -2
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-billing-app.js +6 -1
- package/dist/openmrs-esm-billing-app.js.buildmanifest.json +643 -436
- package/dist/openmrs-esm-billing-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/e2e/commands/billing-operations.ts +21 -0
- package/e2e/commands/types.ts +9 -1
- package/e2e/pages/discounts-page.ts +75 -0
- package/e2e/pages/index.ts +1 -0
- package/e2e/pages/invoice-page.ts +7 -7
- package/e2e/specs/bill-discounts.spec.ts +255 -0
- package/e2e/specs/billing-dashboard.spec.ts +3 -3
- package/e2e/specs/billing-patient-chart.spec.ts +2 -2
- package/package.json +13 -22
- package/rspack.config.js +1 -0
- package/src/bill-history/bill-action-menu.component.tsx +20 -2
- package/src/bill-history/bill-history.test.tsx +23 -22
- package/src/bill-item-actions/edit-bill-item.modal.tsx +1 -1
- package/src/bill-item-actions/edit-bill-item.test.tsx +29 -27
- package/src/billable-services/billable-service-form/billable-service-form.test.tsx +74 -73
- package/src/billable-services/billable-services-home.component.tsx +4 -2
- package/src/billable-services/billable-services.test.tsx +8 -7
- package/src/billable-services/dashboard/dashboard.test.tsx +3 -2
- package/src/billable-services-admin-card-link.test.tsx +2 -1
- package/src/billing-dashboard/billing-dashboard.test.tsx +19 -3
- package/src/billing-form/billing-checkin-form.component.tsx +7 -3
- package/src/billing-form/billing-checkin-form.test.tsx +22 -21
- package/src/billing-form/billing-form.resource.test.ts +7 -6
- package/src/billing-form/billing-form.test.tsx +77 -40
- package/src/billing-form/billing-form.workspace.tsx +25 -6
- package/src/billing-form/visit-attributes/visit-attributes-form.component.tsx +6 -2
- package/src/billing.resource.test.ts +43 -41
- package/src/billing.resource.ts +65 -16
- package/src/bills-table/bills-table.component.tsx +15 -4
- package/src/bills-table/bills-table.test.tsx +72 -71
- package/src/config-schema.ts +0 -7
- package/src/discounts/admin/discount-requests-left-panel-link.component.tsx +43 -0
- package/src/discounts/admin/discount-requests.component.tsx +316 -0
- package/src/discounts/admin/discount-requests.scss +133 -0
- package/src/discounts/admin/discount-requests.test.tsx +104 -0
- package/src/discounts/admin/review-bill-discounts/bill-line-items-table/bill-line-items-table.component.tsx +42 -0
- package/src/discounts/admin/review-bill-discounts/bill-line-items-table/bill-line-items-table.scss +76 -0
- package/src/discounts/admin/review-bill-discounts/bill-payments-table/bill-payments-table.component.tsx +50 -0
- package/src/discounts/admin/review-bill-discounts/bill-payments-table/bill-payments-table.scss +63 -0
- package/src/discounts/admin/review-bill-discounts/bill-receipt-rail/bill-receipt-rail.component.tsx +73 -0
- package/src/discounts/admin/review-bill-discounts/bill-receipt-rail/bill-receipt-rail.scss +54 -0
- package/src/discounts/admin/review-bill-discounts/bill-totals-summary/bill-totals-summary.component.tsx +95 -0
- package/src/discounts/admin/review-bill-discounts/bill-totals-summary/bill-totals-summary.scss +128 -0
- package/src/discounts/admin/review-bill-discounts/discount-card/discount-card.component.tsx +158 -0
- package/src/discounts/admin/review-bill-discounts/discount-card/discount-card.scss +164 -0
- package/src/discounts/admin/review-bill-discounts/discount-review-stack/discount-review-stack.component.tsx +86 -0
- package/src/discounts/admin/review-bill-discounts/discount-review-stack/discount-review-stack.scss +40 -0
- package/src/discounts/admin/review-bill-discounts/review-bill-discounts.modal.scss +14 -0
- package/src/discounts/admin/review-bill-discounts/review-bill-discounts.modal.test.tsx +153 -0
- package/src/discounts/admin/review-bill-discounts/review-bill-discounts.modal.tsx +167 -0
- package/src/discounts/admin/review-bill-discounts/review-bill-discounts.utils.ts +42 -0
- package/src/discounts/discounts-table.component.tsx +109 -0
- package/src/discounts/discounts-table.scss +37 -0
- package/src/discounts/discounts-table.test.tsx +67 -0
- package/src/discounts/discounts.resource.ts +71 -0
- package/src/discounts/request-discount.modal.scss +88 -0
- package/src/discounts/request-discount.modal.test.tsx +161 -0
- package/src/discounts/request-discount.modal.tsx +253 -0
- package/src/index.ts +52 -21
- package/src/invoice/invoice-table.component.tsx +116 -18
- package/src/invoice/invoice-table.test.tsx +165 -13
- package/src/invoice/invoice.component.tsx +111 -7
- package/src/invoice/invoice.test.tsx +366 -66
- package/src/invoice/line-item-action-menu.component.tsx +31 -1
- package/src/invoice/payments/payment-form/payment-form.test.tsx +20 -19
- package/src/invoice/payments/payment-history/payment-history.test.tsx +13 -10
- package/src/invoice/payments/payments.component.tsx +20 -6
- package/src/invoice/payments/payments.test.tsx +88 -23
- package/src/invoice/printable-invoice/print-receipt.test.tsx +10 -28
- package/src/invoice/printable-invoice/printable-footer.test.tsx +5 -4
- package/src/invoice/printable-invoice/printable-invoice-header.component.tsx +3 -3
- package/src/invoice/printable-invoice/printable-invoice-header.test.tsx +26 -11
- package/src/invoice/printable-invoice/printable-invoice.component.tsx +38 -15
- package/src/left-panel-link.test.tsx +3 -3
- package/src/metrics-cards/metrics-cards.test.tsx +11 -10
- package/src/modal/delete-bill-confirmation.modal.test.tsx +134 -0
- package/src/modal/delete-bill-confirmation.modal.tsx +98 -0
- package/src/modal/delete-line-item-confirmation.modal.test.tsx +11 -9
- package/src/modal/finalize-bill-confirmation.modal.test.tsx +10 -8
- package/src/modal/require-payment-modal.test.tsx +12 -11
- package/src/payment-status-tag/payment-status-tag.component.tsx +50 -0
- package/src/payment-status-tag/payment-status-tag.scss +6 -0
- package/src/payment-status-tag/payment-status-tag.test.tsx +113 -0
- package/src/refunds/admin/refund-requests-left-panel-link.component.tsx +43 -0
- package/src/refunds/admin/refund-requests.component.tsx +324 -0
- package/src/refunds/admin/refund-requests.scss +133 -0
- package/src/refunds/admin/refund-requests.test.tsx +99 -0
- package/src/refunds/admin/review-bill-refunds/bill-line-items-table/bill-line-items-table.component.tsx +42 -0
- package/src/refunds/admin/review-bill-refunds/bill-line-items-table/bill-line-items-table.scss +76 -0
- package/src/refunds/admin/review-bill-refunds/bill-payments-table/bill-payments-table.component.tsx +50 -0
- package/src/refunds/admin/review-bill-refunds/bill-payments-table/bill-payments-table.scss +63 -0
- package/src/refunds/admin/review-bill-refunds/bill-receipt-rail/bill-receipt-rail.component.tsx +84 -0
- package/src/refunds/admin/review-bill-refunds/bill-receipt-rail/bill-receipt-rail.scss +54 -0
- package/src/refunds/admin/review-bill-refunds/bill-totals-summary/bill-totals-summary.component.tsx +83 -0
- package/src/refunds/admin/review-bill-refunds/bill-totals-summary/bill-totals-summary.scss +65 -0
- package/src/refunds/admin/review-bill-refunds/refund-card/refund-card.component.tsx +170 -0
- package/src/refunds/admin/review-bill-refunds/refund-card/refund-card.scss +155 -0
- package/src/refunds/admin/review-bill-refunds/refund-review-stack/refund-review-stack.component.tsx +86 -0
- package/src/refunds/admin/review-bill-refunds/refund-review-stack/refund-review-stack.scss +40 -0
- package/src/refunds/admin/review-bill-refunds/review-bill-refunds.modal.scss +14 -0
- package/src/refunds/admin/review-bill-refunds/review-bill-refunds.modal.test.tsx +313 -0
- package/src/refunds/admin/review-bill-refunds/review-bill-refunds.modal.tsx +188 -0
- package/src/refunds/admin/review-bill-refunds/review-bill-refunds.utils.ts +66 -0
- package/src/refunds/refunds-table.component.tsx +137 -0
- package/src/refunds/refunds-table.scss +37 -0
- package/src/refunds/refunds-table.test.tsx +105 -0
- package/src/refunds/refunds.resource.test.ts +44 -0
- package/src/refunds/refunds.resource.ts +42 -0
- package/src/refunds/refunds.types.test.ts +15 -0
- package/src/refunds/request-refund.modal.scss +84 -0
- package/src/refunds/request-refund.modal.test.tsx +204 -0
- package/src/refunds/request-refund.modal.tsx +218 -0
- package/src/routes.json +36 -2
- package/src/types/index.ts +116 -1
- package/src/visit-bills/visit-bills-panel.component.tsx +151 -0
- package/src/visit-bills/visit-bills-panel.scss +31 -0
- package/src/visit-bills/visit-bills-panel.test.tsx +113 -0
- package/tools/empty-module.ts +1 -0
- package/tools/setup-tests.ts +9 -9
- package/translations/am.json +154 -16
- package/translations/ar.json +154 -16
- package/translations/ar_SY.json +154 -16
- package/translations/bn.json +154 -16
- package/translations/cs.json +154 -16
- package/translations/de.json +154 -16
- package/translations/en.json +154 -16
- package/translations/en_US.json +154 -16
- package/translations/es.json +154 -16
- package/translations/es_MX.json +154 -16
- package/translations/fr.json +154 -16
- package/translations/he.json +154 -16
- package/translations/hi.json +154 -16
- package/translations/hi_IN.json +154 -16
- package/translations/id.json +154 -16
- package/translations/it.json +154 -16
- package/translations/ka.json +154 -16
- package/translations/km.json +154 -16
- package/translations/ku.json +154 -16
- package/translations/ky.json +154 -16
- package/translations/lg.json +154 -16
- package/translations/ne.json +154 -16
- package/translations/pl.json +154 -16
- package/translations/pt.json +154 -16
- package/translations/pt_BR.json +154 -16
- package/translations/qu.json +154 -16
- package/translations/ro_RO.json +154 -16
- package/translations/ru_RU.json +154 -16
- package/translations/si.json +154 -16
- package/translations/sq.json +154 -16
- package/translations/sw.json +154 -16
- package/translations/sw_KE.json +154 -16
- package/translations/tr.json +154 -16
- package/translations/tr_TR.json +154 -16
- package/translations/uk.json +154 -16
- package/translations/uz.json +154 -16
- package/translations/uz@Latn.json +154 -16
- package/translations/uz_UZ.json +154 -16
- package/translations/vi.json +154 -16
- package/translations/zh.json +154 -16
- package/translations/zh_CN.json +179 -41
- package/translations/zh_TW.json +154 -16
- package/tsconfig.json +3 -3
- package/vitest.config.js +28 -0
- package/.turbo/cache/4e30f71f570fc412-meta.json +0 -1
- package/.turbo/cache/4e30f71f570fc412.tar.zst +0 -0
- package/dist/1119.js +0 -1
- package/dist/1197.js +0 -1
- package/dist/1435.js +0 -1
- package/dist/1435.js.map +0 -1
- package/dist/1807.js +0 -1
- package/dist/1807.js.map +0 -1
- package/dist/2146.js +0 -1
- package/dist/2177.js +0 -2
- package/dist/2177.js.LICENSE.txt +0 -9
- package/dist/2177.js.map +0 -1
- package/dist/2690.js +0 -1
- package/dist/2704.js +0 -1
- package/dist/2704.js.map +0 -1
- package/dist/3002.js +0 -1
- package/dist/3002.js.map +0 -1
- package/dist/3041.js +0 -1
- package/dist/3041.js.map +0 -1
- package/dist/3099.js +0 -1
- package/dist/3184.js +0 -2
- package/dist/3184.js.LICENSE.txt +0 -14
- package/dist/3184.js.map +0 -1
- package/dist/3584.js +0 -1
- package/dist/4055.js +0 -1
- package/dist/4132.js +0 -1
- package/dist/4225.js +0 -1
- package/dist/4225.js.map +0 -1
- package/dist/4300.js +0 -1
- package/dist/4335.js +0 -1
- package/dist/439.js +0 -1
- package/dist/4618.js +0 -1
- package/dist/4652.js +0 -1
- package/dist/4944.js +0 -1
- package/dist/5173.js +0 -1
- package/dist/5241.js +0 -1
- package/dist/5422.js +0 -1
- package/dist/5422.js.map +0 -1
- package/dist/5442.js +0 -1
- package/dist/5661.js +0 -1
- package/dist/6022.js +0 -1
- package/dist/6404.js +0 -1
- package/dist/6404.js.map +0 -1
- package/dist/6468.js +0 -1
- package/dist/6540.js +0 -2
- package/dist/6540.js.LICENSE.txt +0 -9
- package/dist/6540.js.map +0 -1
- package/dist/6589.js +0 -1
- package/dist/6606.js +0 -1
- package/dist/6606.js.map +0 -1
- package/dist/6679.js +0 -1
- package/dist/6792.js +0 -1
- package/dist/6792.js.map +0 -1
- package/dist/6840.js +0 -1
- package/dist/6859.js +0 -1
- package/dist/7097.js +0 -1
- package/dist/7159.js +0 -1
- package/dist/723.js +0 -1
- package/dist/7255.js +0 -1
- package/dist/7255.js.map +0 -1
- package/dist/7617.js +0 -1
- package/dist/795.js +0 -1
- package/dist/8163.js +0 -1
- package/dist/8341.js +0 -2
- package/dist/8341.js.LICENSE.txt +0 -52
- package/dist/8341.js.map +0 -1
- package/dist/8349.js +0 -1
- package/dist/8371.js +0 -1
- package/dist/8421.js +0 -1
- package/dist/8421.js.map +0 -1
- package/dist/8618.js +0 -1
- package/dist/890.js +0 -1
- package/dist/9214.js +0 -1
- package/dist/9538.js +0 -1
- package/dist/9569.js +0 -1
- package/dist/961.js +0 -2
- package/dist/961.js.LICENSE.txt +0 -19
- package/dist/961.js.map +0 -1
- package/dist/986.js +0 -1
- package/dist/9879.js +0 -1
- package/dist/9895.js +0 -1
- package/dist/9900.js +0 -1
- package/dist/9913.js +0 -1
- package/dist/main.js.LICENSE.txt +0 -62
- package/src/billable-services/bill-waiver/bill-selection.component.tsx +0 -76
- package/src/billable-services/bill-waiver/bill-waiver-form.component.tsx +0 -107
- package/src/billable-services/bill-waiver/bill-waiver-form.scss +0 -34
- package/src/billable-services/bill-waiver/bill-waiver.component.tsx +0 -34
- package/src/billable-services/bill-waiver/bill-waiver.scss +0 -10
- package/src/billable-services/bill-waiver/patient-bills.component.tsx +0 -134
- package/webpack.config.js +0 -1
package/dist/9895.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[9895],{9895(e){e.exports=JSON.parse('{"add":"Add","addBillableService":"Add billable service","addBillItems":"Add bill items","addCashPoint":"Add cash point","addItemsToBill":"Add items to bill","addNewBillableService":"Add new billable service","addNewCashPoint":"Add new cash point","addNewPaymentMode":"Add new payment mode","addNewService":"Add new service","addPaymentMode":"Add payment mode","addPaymentOption":"Add payment option","address":"Address","allBills":"All bills","amount":"Amount","amountBalance":"Amount balance","amountDue":"Amount due","amountMustBePositive":"Amount must be greater than 0","amountPaid":"Amount paid","amountRequired":"Amount is required","amountTendered":"Amount tendered","amountToWaiveAriaLabel":"Enter amount to waive","amountToWaiveHelper":"Specify the amount to be deducted from the bill","amountToWaiveLabel":"Amount to waive","associatedConcept":"Associated concept","balance":"Balance","billableService":"Billable service","billableServiceCreated":"Billable service created","billableServiceCreatedSuccessfully":"Billable service created successfully","billableServiceForm":"Billable service form","billableServices":"Billable services","billableServices__lower":"billable services","billableServicesManagement":"Billable services management","billableServiceUpdated":"Billable service updated","billableServiceUpdatedSuccessfully":"Billable service updated successfully","billAmount":"Bill amount","billCreatedSuccessfully":"Bill created successfully","billCreationError":"Bill creation error","billDate":"Bill date","billedItems":"Billed items","billErrorService":"Billing service error","billFinalized":"Bill finalized","billFinalizedSuccess":"Bill has been finalized successfully","billFinalizeFailed":"Failed to finalize bill","billing":"Billing","billingDetails":"Billing details","billingHistory":"Billing history","billingSettings":"Billing settings","billItem":"Bill item","billItems":"Bill items","billLineItemEmpty":"This bill has no line items","billList":"Bill list","billMetrics":"Bill metrics","billName":"{{billName}}","billPayment":"Bill payment","billPaymentError":"Bill payment error","billPaymentRequiredMessage":"The current patient has a pending bill. Advise the patient to settle the bill before receiving services","billProcessed":"Bill processed","billProcessedSuccessfully":"Bill processed successfully","billProcessingError":"Bill processing error","billsTable":"Bills table","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","birthDate":"Date of birth","cashPointConfig":"Cash point configuration","cashPointHistory":"Cash point history","cashPointLocation":"Cash point location","cashPointName":"Cash point name","cashPointNamePlaceholder":"For example, Pharmacy Cash Point","cashPointNameRequired":"Cash point name is required","cashPointSaved":"Cash point was successfully saved.","cashPointUuid":"Cash point UUID","cashPointUuidPlaceholder":"Enter UUID","checkFilters":"Check the filters above","childUnder5":"Child under 5","clearSearch":"Clear","confirmDeleteMessage":"Are you sure you want to delete this payment mode? Proceed cautiously.","createBill":"Create bill","cumulativeBills":"Cumulative bills","currentPrice":"Current price","date":"Date","dateAndTime":"Date and time","dateOfPayment":"Date of payment","deleteConfirmation":"Are you sure you want to delete \\"{{itemName}}\\" from this bill?","deleteFailedTryAgain":"Unable to delete line item. Please try again.","deleteLineItem":"Delete line item","deletePaymentMode":"Delete payment mode","deleteReason":"Reason for deletion","deleteReasonPlaceholder":"Enter the reason for removing this line item from the bill","deleting":"Deleting","description":"Description","descriptionPlaceholder":"For example, Used for all cash transactions","discard":"Discard","discount":"Discount","editBillableService":"Edit billable service","editBillLineItem":"Edit bill line item","editPaymentMode":"Edit payment mode","enterAmount":"Enter amount","enterReferenceNumber":"Enter reference number","enterSellingPrice":"Enter selling price","enterServiceName":"Enter service name","enterServiceShortName":"Enter service short name","errorCreatingBill":"An error occurred while creating the bill","errorDeletingPaymentMode":"An error occurred while deleting the payment mode.","errorFetchingCashPoints":"An error occurred while fetching cash points.","errorFetchingLocations":"An error occurred while fetching locations.","errorLoadingBill":"Error loading bill","errorLoadingBillableServices":"Error loading billable services","errorLoadingBillServices":"Error loading bill services","errorLoadingLastVisit":"An error occurred while loading the last visit","errorLoadingPaymentModes":"Error loading payment modes","errorPrintingInvoice":"Error printing invoice","errorProcessingPayment":"Error processing payment","errorSavingCashPoint":"An error occurred while saving the cash point.","errorSavingPaymentMode":"An error occurred while saving the payment mode.","existingItems":"Existing items","filterBillsByPatient":"Filter bills by patient name or identifier","filterBy":"Filter by:","filterTable":"Filter table","finalize":"Finalize","finalizeBill":"Finalize bill","finalizeBillConfirmation":"Are you sure you want to finalize this bill? Once finalized, no further modifications to the bill will be allowed.","finalizeFailedTryAgain":"Unable to finalize bill. Please try again.","finalizing":"Finalizing","gender":"Gender","grandTotal":"Grand total","home":"Home","insuranceScheme":"Insurance scheme","invalidUuidFormat":"Invalid UUID format","invalidWaiverAmount":"Invalid waiver amount","inventoryItem":"Inventory item","invoice":"Invoice","invoiceDate":"Invoice date","invoiceError":"Invoice error","invoiceLineItems":"Invoice line items","invoiceNumber":"Invoice #","invoiceStatus":"Invoice status","invoiceSummary":"Invoice summary","item":"Item","itemsAddedToBill":"Items added to bill","itemsAddedToBillSuccessfully":"Items have been added to the bill successfully","itemsToBeBilled":"Items to be billed","lastVisitError":"Last visit error","lastVisitInfo":"Last Visit Information","lastVisitMsg_one":"The last visit was a {{type}} {{count}} day ago at {{location}}","lastVisitMsg_other":"The last visit was a {{type}} {{count}} days ago at {{location}}","lineItemDeleted":"Line item deleted","lineItemDeleteFailed":"Failed to delete line item","lineItemDeleteSuccess":"Bill line item deleted successfully","lineItems":"Line items","lineItemUpdated":"Line item updated","lineItemUpdateErrorDefault":"Unable to update the bill line item. Please try again.","lineItemUpdateFailed":"Failed to update line item","lineItemUpdateSuccess":"The bill line item has been updated successfully","loading":"Loading data","loadingBillInfo":"Loading bill information","loadingBillingServices":"Loading billing services","loadingBillItems":"Loading bill items","loadingBillMetrics":"Loading bill metrics","loadingDescription":"Loading","location":"Location","locationRequired":"Location is required","manageBillableServices":"Manage billable services","name":"Name","newItems":"New items","nextPage":"Next page","no":"No","noBillsToDisplay":"There are no bills to display.","noBillToDisplay":"There are no bills to display for this patient","noMatchingBillsToDisplay":"No matching bills to display","noMatchingItemsToDisplay":"No matching items to display","noMatchingServicesToDisplay":"No matching services to display","nonPaying":"Non paying","nonPayingInfo":"Any services rendered to non-paying patients will not be billed","noResultsFor":"No results for {{searchTerm}}","number":"Number","ok":"OK","paidBills":"Paid bills","patientBill":"Patient bill","patientBillingAlert":"Patient billing alert","patientBills":"Patient bills","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","patientIdentifier":"Patient identifier","patientInformation":"Patient information","patientName":"Patient name","paying":"Paying","paymentAmountCannotExceedAmountDue":"Payment amount cannot exceed amount due","paymentDetails":"Payment details","paymentHistory":"Payment History","paymentMethod":"Payment method","paymentMethodRequired":"Payment method is required for all items","paymentMode":"Payment mode","paymentModeDeleted":"Payment mode was successfully deleted.","paymentModeHistory":"Payment mode history","paymentModeNameLabel":"Payment mode name","paymentModeNamePlaceholder":"For example, Cash, Credit Card","paymentModeNameRequired":"Payment mode name is required","paymentModeNameToDelete":"Payment mode name: {{paymentModeName}}","paymentModeRequired":"Payment mode is required","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment modes configuration","paymentOptionRequired":"At least one payment option is required","paymentProcessedSuccessfully":"Payment processed successfully","payments":"Payments","pendingBills":"Pending bills","pendingConfirmationBills":"Pending confirmation","pendingPaymentBills":"Pending payment","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Price","priceIsRequired":"Price is required","priceMustBeNonNegative":"Price must be 0 or greater","priceMustBeNumber":"Price must be a valid number","priceMustBePositive":"Price must be greater than 0","prices":"Prices","printBill":"Print bill","printReceipt":"Print receipt","processPayment":"Process payment","quantity":"Quantity","quantityCannotExceed100":"Quantity cannot exceed 100","quantityMustBeAtLeastOne":"Quantity must be at least 1","quantityMustBeInteger":"Quantity must be a whole number","quantityMustBeNumber":"Quantity must be a valid number","quantityRequired":"Quantity is required","referenceNumber":"Reference number","remove":"Remove","saveAndClose":"Save and close","saving":"Saving","searchConcepts":"Search associated concept","searchForPatient":"Search for a patient by name","searching":"Searching","searchItems":"Search items and services","searchThisTable":"Search this table","selectBillableService":"Select a billable service","selectedItems":"Selected items","selectLocation":"Select location","selectPatientCategory":"Select patient category","selectPaymentMethod":"Select payment method","selectPaymentMode":"Select payment mode","selectServiceType":"Select service type","sellingPrice":"Selling price","serviceList":"Service list","serviceName":"Service name","serviceNameExceedsLimit":"Service name cannot exceed {{MAX_NAME_LENGTH}} characters","serviceNameRequired":"Service name is required","serviceResolutionError":"Could not resolve service \\"{{service}}\\"","servicesList":"Services list","serviceStatus":"Service status","serviceType":"Service type","serviceTypeRequired":"Service type is required","shortName":"Short name","shortNameExceedsLimit":"Short name cannot exceed {{MAX_NAME_LENGTH}} characters","showInformation":"Show information","status":"Service status","student":"Student","submitting":"Submitting","subtotal":"Subtotal","success":"Success","total":"Total","totalAmount":"Total amount","totalPaid":"Total paid","totalTendered":"Total tendered","unitPrice":"Unit price","unitPriceHelperText":"This is the unit price for this item","unknownBillError":"An unexpected error occurred","uuid":"UUID","uuidRequired":"UUID is required","validationError":"Validation error","waiverForm":"Waiver form"}')}}]);
|
package/dist/9900.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[9900],{99900(e){e.exports=JSON.parse('{"add":"Add","addBillableService":"Add billable service","addBillItems":"Add bill items","addCashPoint":"Add cash point","addItemsToBill":"Add items to bill","addNewBillableService":"Add new billable service","addNewCashPoint":"Add new cash point","addNewPaymentMode":"Add new payment mode","addNewService":"Add new service","addPaymentMode":"Add payment mode","addPaymentOption":"Add payment option","address":"Address","allBills":"All bills","amount":"Amount","amountBalance":"Amount balance","amountDue":"Amount due","amountMustBePositive":"Amount must be greater than 0","amountPaid":"Amount paid","amountRequired":"Amount is required","amountTendered":"Amount tendered","amountToWaiveAriaLabel":"Enter amount to waive","amountToWaiveHelper":"Specify the amount to be deducted from the bill","amountToWaiveLabel":"Amount to waive","associatedConcept":"Associated concept","balance":"Balance","billableService":"Billable service","billableServiceCreated":"Billable service created","billableServiceCreatedSuccessfully":"Billable service created successfully","billableServiceForm":"Billable service form","billableServices":"Billable services","billableServices__lower":"billable services","billableServicesManagement":"Billable services management","billableServiceUpdated":"Billable service updated","billableServiceUpdatedSuccessfully":"Billable service updated successfully","billAmount":"Bill amount","billCreatedSuccessfully":"Bill created successfully","billCreationError":"Bill creation error","billDate":"Bill date","billedItems":"Billed items","billErrorService":"Billing service error","billFinalized":"Bill finalized","billFinalizedSuccess":"Bill has been finalized successfully","billFinalizeFailed":"Failed to finalize bill","billing":"Billing","billingDetails":"Billing details","billingHistory":"Billing history","billingSettings":"Billing settings","billItem":"Bill item","billItems":"Bill items","billLineItemEmpty":"This bill has no line items","billList":"Bill list","billMetrics":"Bill metrics","billName":"{{billName}}","billPayment":"Bill payment","billPaymentError":"Bill payment error","billPaymentRequiredMessage":"The current patient has a pending bill. Advise the patient to settle the bill before receiving services","billProcessed":"Bill processed","billProcessedSuccessfully":"Bill processed successfully","billProcessingError":"Bill processing error","billsTable":"Bills table","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","birthDate":"Date of birth","cashPointConfig":"Cash point configuration","cashPointHistory":"Cash point history","cashPointLocation":"Cash point location","cashPointName":"Cash point name","cashPointNamePlaceholder":"For example, Pharmacy Cash Point","cashPointNameRequired":"Cash point name is required","cashPointSaved":"Cash point was successfully saved.","cashPointUuid":"Cash point UUID","cashPointUuidPlaceholder":"Enter UUID","checkFilters":"Check the filters above","childUnder5":"Child under 5","clearSearch":"Clear","confirmDeleteMessage":"Are you sure you want to delete this payment mode? Proceed cautiously.","createBill":"Create bill","cumulativeBills":"Cumulative bills","currentPrice":"Current price","date":"Date","dateAndTime":"Date and time","dateOfPayment":"Date of payment","deleteConfirmation":"Are you sure you want to delete \\"{{itemName}}\\" from this bill?","deleteFailedTryAgain":"Unable to delete line item. Please try again.","deleteLineItem":"Delete line item","deletePaymentMode":"Delete payment mode","deleteReason":"Reason for deletion","deleteReasonPlaceholder":"Enter the reason for removing this line item from the bill","deleting":"Deleting","description":"Description","descriptionPlaceholder":"For example, Used for all cash transactions","discard":"Discard","discount":"Discount","editBillableService":"Edit billable service","editBillLineItem":"Edit bill line item","editPaymentMode":"Edit payment mode","enterAmount":"Enter amount","enterReferenceNumber":"Enter reference number","enterSellingPrice":"Enter selling price","enterServiceName":"Enter service name","enterServiceShortName":"Enter service short name","errorCreatingBill":"An error occurred while creating the bill","errorDeletingPaymentMode":"An error occurred while deleting the payment mode.","errorFetchingCashPoints":"An error occurred while fetching cash points.","errorFetchingLocations":"An error occurred while fetching locations.","errorLoadingBill":"Error loading bill","errorLoadingBillableServices":"Error loading billable services","errorLoadingBillServices":"Error loading bill services","errorLoadingLastVisit":"An error occurred while loading the last visit","errorLoadingPaymentModes":"Error loading payment modes","errorPrintingInvoice":"Error printing invoice","errorProcessingPayment":"Error processing payment","errorSavingCashPoint":"An error occurred while saving the cash point.","errorSavingPaymentMode":"An error occurred while saving the payment mode.","existingItems":"Existing items","filterBillsByPatient":"Filter bills by patient name or identifier","filterBy":"Filter by:","filterTable":"Filter table","finalize":"Finalize","finalizeBill":"Finalize bill","finalizeBillConfirmation":"Are you sure you want to finalize this bill? Once finalized, no further modifications to the bill will be allowed.","finalizeFailedTryAgain":"Unable to finalize bill. Please try again.","finalizing":"Finalizing","gender":"Gender","grandTotal":"Grand total","home":"Home","insuranceScheme":"Insurance scheme","invalidUuidFormat":"Invalid UUID format","invalidWaiverAmount":"Invalid waiver amount","inventoryItem":"Inventory item","invoice":"Invoice","invoiceDate":"Invoice date","invoiceError":"Invoice error","invoiceLineItems":"Invoice line items","invoiceNumber":"Invoice #","invoiceStatus":"Invoice status","invoiceSummary":"Invoice summary","item":"Item","itemsAddedToBill":"Items added to bill","itemsAddedToBillSuccessfully":"Items have been added to the bill successfully","itemsToBeBilled":"Items to be billed","lastVisitError":"Last visit error","lastVisitInfo":"Last Visit Information","lastVisitMsg_one":"The last visit was a {{type}} {{count}} day ago at {{location}}","lastVisitMsg_other":"The last visit was a {{type}} {{count}} days ago at {{location}}","lineItemDeleted":"Line item deleted","lineItemDeleteFailed":"Failed to delete line item","lineItemDeleteSuccess":"Bill line item deleted successfully","lineItems":"Line items","lineItemUpdated":"Line item updated","lineItemUpdateErrorDefault":"Unable to update the bill line item. Please try again.","lineItemUpdateFailed":"Failed to update line item","lineItemUpdateSuccess":"The bill line item has been updated successfully","loading":"Loading data","loadingBillInfo":"Loading bill information","loadingBillingServices":"Loading billing services","loadingBillItems":"Loading bill items","loadingBillMetrics":"Loading bill metrics","loadingDescription":"Loading","location":"Location","locationRequired":"Location is required","manageBillableServices":"Manage billable services","name":"Name","newItems":"New items","nextPage":"Next page","no":"No","noBillsToDisplay":"There are no bills to display.","noBillToDisplay":"There are no bills to display for this patient","noMatchingBillsToDisplay":"No matching bills to display","noMatchingItemsToDisplay":"No matching items to display","noMatchingServicesToDisplay":"No matching services to display","nonPaying":"Non paying","nonPayingInfo":"Any services rendered to non-paying patients will not be billed","noResultsFor":"No results for {{searchTerm}}","number":"Number","ok":"OK","paidBills":"Paid bills","patientBill":"Patient bill","patientBillingAlert":"Patient billing alert","patientBills":"Patient bills","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","patientIdentifier":"Patient identifier","patientInformation":"Patient information","patientName":"Patient name","paying":"Paying","paymentAmountCannotExceedAmountDue":"Payment amount cannot exceed amount due","paymentDetails":"Payment details","paymentHistory":"Payment History","paymentMethod":"Payment method","paymentMethodRequired":"Payment method is required for all items","paymentMode":"Payment mode","paymentModeDeleted":"Payment mode was successfully deleted.","paymentModeHistory":"Payment mode history","paymentModeNameLabel":"Payment mode name","paymentModeNamePlaceholder":"For example, Cash, Credit Card","paymentModeNameRequired":"Payment mode name is required","paymentModeNameToDelete":"Payment mode name: {{paymentModeName}}","paymentModeRequired":"Payment mode is required","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment modes configuration","paymentOptionRequired":"At least one payment option is required","paymentProcessedSuccessfully":"Payment processed successfully","payments":"Payments","pendingBills":"Pending bills","pendingConfirmationBills":"Pending confirmation","pendingPaymentBills":"Pending payment","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Price","priceIsRequired":"Price is required","priceMustBeNonNegative":"Price must be 0 or greater","priceMustBeNumber":"Price must be a valid number","priceMustBePositive":"Price must be greater than 0","prices":"Prices","printBill":"Print bill","printReceipt":"Print receipt","processPayment":"Process payment","quantity":"Quantity","quantityCannotExceed100":"Quantity cannot exceed 100","quantityMustBeAtLeastOne":"Quantity must be at least 1","quantityMustBeInteger":"Quantity must be a whole number","quantityMustBeNumber":"Quantity must be a valid number","quantityRequired":"Quantity is required","referenceNumber":"Reference number","remove":"Remove","saveAndClose":"Save and close","saving":"Saving","searchConcepts":"Search associated concept","searchForPatient":"Search for a patient by name","searching":"Searching","searchItems":"Search items and services","searchThisTable":"Search this table","selectBillableService":"Select a billable service","selectedItems":"Selected items","selectLocation":"Select location","selectPatientCategory":"Select patient category","selectPaymentMethod":"Select payment method","selectPaymentMode":"Select payment mode","selectServiceType":"Select service type","sellingPrice":"Selling price","serviceList":"Service list","serviceName":"Service name","serviceNameExceedsLimit":"Service name cannot exceed {{MAX_NAME_LENGTH}} characters","serviceNameRequired":"Service name is required","serviceResolutionError":"Could not resolve service \\"{{service}}\\"","servicesList":"Services list","serviceStatus":"Service status","serviceType":"Service type","serviceTypeRequired":"Service type is required","shortName":"Short name","shortNameExceedsLimit":"Short name cannot exceed {{MAX_NAME_LENGTH}} characters","showInformation":"Show information","status":"Service status","student":"Student","submitting":"Submitting","subtotal":"Subtotal","success":"Success","total":"Total","totalAmount":"Total amount","totalPaid":"Total paid","totalTendered":"Total tendered","unitPrice":"Unit price","unitPriceHelperText":"This is the unit price for this item","unknownBillError":"An unexpected error occurred","uuid":"UUID","uuidRequired":"UUID is required","validationError":"Validation error","waiverForm":"Waiver form"}')}}]);
|
package/dist/9913.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[9913],{89913(e){e.exports=JSON.parse('{"add":"Add","addBillableService":"Add billable service","addBillItems":"Add bill items","addCashPoint":"Add cash point","addItemsToBill":"Add items to bill","addNewBillableService":"Add new billable service","addNewCashPoint":"Add new cash point","addNewPaymentMode":"Add new payment mode","addNewService":"Add new service","addPaymentMode":"Add payment mode","addPaymentOption":"Add payment option","address":"Address","allBills":"All bills","amount":"Amount","amountBalance":"Amount balance","amountDue":"Amount due","amountMustBePositive":"Amount must be greater than 0","amountPaid":"Amount paid","amountRequired":"Amount is required","amountTendered":"Amount tendered","amountToWaiveAriaLabel":"Enter amount to waive","amountToWaiveHelper":"Specify the amount to be deducted from the bill","amountToWaiveLabel":"Amount to waive","associatedConcept":"Associated concept","balance":"Balance","billableService":"Billable service","billableServiceCreated":"Billable service created","billableServiceCreatedSuccessfully":"Billable service created successfully","billableServiceForm":"Billable service form","billableServices":"Billable services","billableServices__lower":"billable services","billableServicesManagement":"Billable services management","billableServiceUpdated":"Billable service updated","billableServiceUpdatedSuccessfully":"Billable service updated successfully","billAmount":"Bill amount","billCreatedSuccessfully":"Bill created successfully","billCreationError":"Bill creation error","billDate":"Bill date","billedItems":"Billed items","billErrorService":"Billing service error","billFinalized":"Bill finalized","billFinalizedSuccess":"Bill has been finalized successfully","billFinalizeFailed":"Failed to finalize bill","billing":"Billing","billingDetails":"Billing details","billingHistory":"Billing history","billingSettings":"Billing settings","billItem":"Bill item","billItems":"Bill items","billLineItemEmpty":"This bill has no line items","billList":"Bill list","billMetrics":"Bill metrics","billName":"{{billName}}","billPayment":"Bill payment","billPaymentError":"Bill payment error","billPaymentRequiredMessage":"The current patient has a pending bill. Advise the patient to settle the bill before receiving services","billProcessed":"Bill processed","billProcessedSuccessfully":"Bill processed successfully","billProcessingError":"Bill processing error","billsTable":"Bills table","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","birthDate":"Date of birth","cashPointConfig":"Cash point configuration","cashPointHistory":"Cash point history","cashPointLocation":"Cash point location","cashPointName":"Cash point name","cashPointNamePlaceholder":"For example, Pharmacy Cash Point","cashPointNameRequired":"Cash point name is required","cashPointSaved":"Cash point was successfully saved.","cashPointUuid":"Cash point UUID","cashPointUuidPlaceholder":"Enter UUID","checkFilters":"Check the filters above","childUnder5":"Child under 5","clearSearch":"Clear","confirmDeleteMessage":"Are you sure you want to delete this payment mode? Proceed cautiously.","createBill":"Create bill","cumulativeBills":"Cumulative bills","currentPrice":"Current price","date":"Date","dateAndTime":"Date and time","dateOfPayment":"Date of payment","deleteConfirmation":"Are you sure you want to delete \\"{{itemName}}\\" from this bill?","deleteFailedTryAgain":"Unable to delete line item. Please try again.","deleteLineItem":"Delete line item","deletePaymentMode":"Delete payment mode","deleteReason":"Reason for deletion","deleteReasonPlaceholder":"Enter the reason for removing this line item from the bill","deleting":"Deleting","description":"Description","descriptionPlaceholder":"For example, Used for all cash transactions","discard":"Discard","discount":"Discount","editBillableService":"Edit billable service","editBillLineItem":"Edit bill line item","editPaymentMode":"Edit payment mode","enterAmount":"Enter amount","enterReferenceNumber":"Enter reference number","enterSellingPrice":"Enter selling price","enterServiceName":"Enter service name","enterServiceShortName":"Enter service short name","errorCreatingBill":"An error occurred while creating the bill","errorDeletingPaymentMode":"An error occurred while deleting the payment mode.","errorFetchingCashPoints":"An error occurred while fetching cash points.","errorFetchingLocations":"An error occurred while fetching locations.","errorLoadingBill":"Error loading bill","errorLoadingBillableServices":"Error loading billable services","errorLoadingBillServices":"Error loading bill services","errorLoadingLastVisit":"An error occurred while loading the last visit","errorLoadingPaymentModes":"Error loading payment modes","errorPrintingInvoice":"Error printing invoice","errorProcessingPayment":"Error processing payment","errorSavingCashPoint":"An error occurred while saving the cash point.","errorSavingPaymentMode":"An error occurred while saving the payment mode.","existingItems":"Existing items","filterBillsByPatient":"Filter bills by patient name or identifier","filterBy":"Filter by:","filterTable":"Filter table","finalize":"Finalize","finalizeBill":"Finalize bill","finalizeBillConfirmation":"Are you sure you want to finalize this bill? Once finalized, no further modifications to the bill will be allowed.","finalizeFailedTryAgain":"Unable to finalize bill. Please try again.","finalizing":"Finalizing","gender":"Gender","grandTotal":"Grand total","home":"Home","insuranceScheme":"Insurance scheme","invalidUuidFormat":"Invalid UUID format","invalidWaiverAmount":"Invalid waiver amount","inventoryItem":"Inventory item","invoice":"Invoice","invoiceDate":"Invoice date","invoiceError":"Invoice error","invoiceLineItems":"Invoice line items","invoiceNumber":"Invoice #","invoiceStatus":"Invoice status","invoiceSummary":"Invoice summary","item":"Item","itemsAddedToBill":"Items added to bill","itemsAddedToBillSuccessfully":"Items have been added to the bill successfully","itemsToBeBilled":"Items to be billed","lastVisitError":"Last visit error","lastVisitInfo":"Last Visit Information","lastVisitMsg_one":"The last visit was a {{type}} {{count}} day ago at {{location}}","lastVisitMsg_other":"The last visit was a {{type}} {{count}} days ago at {{location}}","lineItemDeleted":"Line item deleted","lineItemDeleteFailed":"Failed to delete line item","lineItemDeleteSuccess":"Bill line item deleted successfully","lineItems":"Line items","lineItemUpdated":"Line item updated","lineItemUpdateErrorDefault":"Unable to update the bill line item. Please try again.","lineItemUpdateFailed":"Failed to update line item","lineItemUpdateSuccess":"The bill line item has been updated successfully","loading":"Loading data","loadingBillInfo":"Loading bill information","loadingBillingServices":"Loading billing services","loadingBillItems":"Loading bill items","loadingBillMetrics":"Loading bill metrics","loadingDescription":"Loading","location":"Location","locationRequired":"Location is required","manageBillableServices":"Manage billable services","name":"Name","newItems":"New items","nextPage":"Next page","no":"No","noBillsToDisplay":"There are no bills to display.","noBillToDisplay":"There are no bills to display for this patient","noMatchingBillsToDisplay":"No matching bills to display","noMatchingItemsToDisplay":"No matching items to display","noMatchingServicesToDisplay":"No matching services to display","nonPaying":"Non paying","nonPayingInfo":"Any services rendered to non-paying patients will not be billed","noResultsFor":"No results for {{searchTerm}}","number":"Number","ok":"OK","paidBills":"Paid bills","patientBill":"Patient bill","patientBillingAlert":"Patient billing alert","patientBills":"Patient bills","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","patientIdentifier":"Patient identifier","patientInformation":"Patient information","patientName":"Patient name","paying":"Paying","paymentAmountCannotExceedAmountDue":"Payment amount cannot exceed amount due","paymentDetails":"Payment details","paymentHistory":"Payment History","paymentMethod":"Payment method","paymentMethodRequired":"Payment method is required for all items","paymentMode":"Payment mode","paymentModeDeleted":"Payment mode was successfully deleted.","paymentModeHistory":"Payment mode history","paymentModeNameLabel":"Payment mode name","paymentModeNamePlaceholder":"For example, Cash, Credit Card","paymentModeNameRequired":"Payment mode name is required","paymentModeNameToDelete":"Payment mode name: {{paymentModeName}}","paymentModeRequired":"Payment mode is required","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment modes configuration","paymentOptionRequired":"At least one payment option is required","paymentProcessedSuccessfully":"Payment processed successfully","payments":"Payments","pendingBills":"Pending bills","pendingConfirmationBills":"Pending confirmation","pendingPaymentBills":"Pending payment","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Price","priceIsRequired":"Price is required","priceMustBeNonNegative":"Price must be 0 or greater","priceMustBeNumber":"Price must be a valid number","priceMustBePositive":"Price must be greater than 0","prices":"Prices","printBill":"Print bill","printReceipt":"Print receipt","processPayment":"Process payment","quantity":"Quantity","quantityCannotExceed100":"Quantity cannot exceed 100","quantityMustBeAtLeastOne":"Quantity must be at least 1","quantityMustBeInteger":"Quantity must be a whole number","quantityMustBeNumber":"Quantity must be a valid number","quantityRequired":"Quantity is required","referenceNumber":"Reference number","remove":"Remove","saveAndClose":"Save and close","saving":"Saving","searchConcepts":"Search associated concept","searchForPatient":"Search for a patient by name","searching":"Searching","searchItems":"Search items and services","searchThisTable":"Search this table","selectBillableService":"Select a billable service","selectedItems":"Selected items","selectLocation":"Select location","selectPatientCategory":"Select patient category","selectPaymentMethod":"Select payment method","selectPaymentMode":"Select payment mode","selectServiceType":"Select service type","sellingPrice":"Selling price","serviceList":"Service list","serviceName":"Service name","serviceNameExceedsLimit":"Service name cannot exceed {{MAX_NAME_LENGTH}} characters","serviceNameRequired":"Service name is required","serviceResolutionError":"Could not resolve service \\"{{service}}\\"","servicesList":"Services list","serviceStatus":"Service status","serviceType":"Service type","serviceTypeRequired":"Service type is required","shortName":"Short name","shortNameExceedsLimit":"Short name cannot exceed {{MAX_NAME_LENGTH}} characters","showInformation":"Show information","status":"Service status","student":"Student","submitting":"Submitting","subtotal":"Subtotal","success":"Success","total":"Total","totalAmount":"Total amount","totalPaid":"Total paid","totalTendered":"Total tendered","unitPrice":"Unit price","unitPriceHelperText":"This is the unit price for this item","unknownBillError":"An unexpected error occurred","uuid":"UUID","uuidRequired":"UUID is required","validationError":"Validation error","waiverForm":"Waiver form"}')}}]);
|
package/dist/main.js.LICENSE.txt
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*!
|
|
8
|
-
* tabbable 6.2.0
|
|
9
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @license React
|
|
14
|
-
* react-is.production.min.js
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @license React
|
|
24
|
-
* react-jsx-runtime.production.min.js
|
|
25
|
-
*
|
|
26
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the MIT license found in the
|
|
29
|
-
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @license React
|
|
34
|
-
* use-sync-external-store-shim.production.js
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the MIT license found in the
|
|
39
|
-
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @remix-run/router v1.14.2
|
|
44
|
-
*
|
|
45
|
-
* Copyright (c) Remix Software Inc.
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the MIT license found in the
|
|
48
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
49
|
-
*
|
|
50
|
-
* @license MIT
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* React Router v6.21.3
|
|
55
|
-
*
|
|
56
|
-
* Copyright (c) Remix Software Inc.
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the MIT license found in the
|
|
59
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
60
|
-
*
|
|
61
|
-
* @license MIT
|
|
62
|
-
*/
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Checkbox,
|
|
4
|
-
Layer,
|
|
5
|
-
StructuredListBody,
|
|
6
|
-
StructuredListCell,
|
|
7
|
-
StructuredListHead,
|
|
8
|
-
StructuredListRow,
|
|
9
|
-
StructuredListWrapper,
|
|
10
|
-
} from '@carbon/react';
|
|
11
|
-
import { useTranslation } from 'react-i18next';
|
|
12
|
-
import { getCoreTranslation, useConfig } from '@openmrs/esm-framework';
|
|
13
|
-
import { convertToCurrency } from '../../helpers';
|
|
14
|
-
import { type MappedBill, type LineItem } from '../../types';
|
|
15
|
-
import BillWaiverForm from './bill-waiver-form.component';
|
|
16
|
-
import styles from './bill-waiver.scss';
|
|
17
|
-
|
|
18
|
-
const PatientBillsSelections: React.FC<{ bills: MappedBill; setPatientUuid: (patientUuid) => void }> = ({
|
|
19
|
-
bills,
|
|
20
|
-
setPatientUuid,
|
|
21
|
-
}) => {
|
|
22
|
-
const { t } = useTranslation();
|
|
23
|
-
const [selectedBills, setSelectedBills] = useState<Array<LineItem>>([]);
|
|
24
|
-
const { defaultCurrency } = useConfig();
|
|
25
|
-
|
|
26
|
-
const checkBoxLabel = (lineItem) => {
|
|
27
|
-
return `${lineItem.item === '' ? lineItem.billableService : lineItem.item} ${convertToCurrency(lineItem.price, defaultCurrency)}`;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const handleOnCheckBoxChange = (event, { checked, id }) => {
|
|
31
|
-
const selectedLineItem = bills.lineItems.find((lineItem) => lineItem.uuid === id);
|
|
32
|
-
if (checked) {
|
|
33
|
-
setSelectedBills([...selectedBills, selectedLineItem]);
|
|
34
|
-
} else {
|
|
35
|
-
setSelectedBills(selectedBills.filter((lineItem) => lineItem.uuid !== id));
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
return (
|
|
39
|
-
<Layer>
|
|
40
|
-
<StructuredListWrapper className={styles.billListContainer} isCondensed selection={true}>
|
|
41
|
-
<StructuredListHead>
|
|
42
|
-
<StructuredListRow head>
|
|
43
|
-
<StructuredListCell head>{t('billItem', 'Bill item')}</StructuredListCell>
|
|
44
|
-
<StructuredListCell head>{t('quantity', 'Quantity')}</StructuredListCell>
|
|
45
|
-
<StructuredListCell head>{t('unitPrice', 'Unit price')}</StructuredListCell>
|
|
46
|
-
<StructuredListCell head>{t('total', 'Total')}</StructuredListCell>
|
|
47
|
-
<StructuredListCell head>{getCoreTranslation('actions')}</StructuredListCell>
|
|
48
|
-
</StructuredListRow>
|
|
49
|
-
</StructuredListHead>
|
|
50
|
-
<StructuredListBody>
|
|
51
|
-
{bills?.lineItems.map((lineItem) => (
|
|
52
|
-
<StructuredListRow>
|
|
53
|
-
<StructuredListCell>{lineItem.item === '' ? lineItem.billableService : lineItem.item}</StructuredListCell>
|
|
54
|
-
<StructuredListCell>{lineItem.quantity}</StructuredListCell>
|
|
55
|
-
<StructuredListCell>{convertToCurrency(lineItem.price, defaultCurrency)}</StructuredListCell>
|
|
56
|
-
<StructuredListCell>
|
|
57
|
-
{convertToCurrency(lineItem.price * lineItem.quantity, defaultCurrency)}
|
|
58
|
-
</StructuredListCell>
|
|
59
|
-
<StructuredListCell>
|
|
60
|
-
<Checkbox
|
|
61
|
-
hideLabel
|
|
62
|
-
onChange={(event, { checked, id }) => handleOnCheckBoxChange(event, { checked, id })}
|
|
63
|
-
labelText={checkBoxLabel(lineItem)}
|
|
64
|
-
id={lineItem.uuid}
|
|
65
|
-
/>
|
|
66
|
-
</StructuredListCell>
|
|
67
|
-
</StructuredListRow>
|
|
68
|
-
))}
|
|
69
|
-
</StructuredListBody>
|
|
70
|
-
</StructuredListWrapper>
|
|
71
|
-
<BillWaiverForm bill={bills} lineItems={selectedBills} setPatientUuid={setPatientUuid} />
|
|
72
|
-
</Layer>
|
|
73
|
-
);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export default PatientBillsSelections;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { Button, Form, FormGroup, Layer, NumberInput, Stack } from '@carbon/react';
|
|
3
|
-
import { TaskAdd } from '@carbon/react/icons';
|
|
4
|
-
import { useSWRConfig } from 'swr';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { showSnackbar, useConfig } from '@openmrs/esm-framework';
|
|
7
|
-
import { calculateTotalAmount, convertToCurrency } from '../../helpers';
|
|
8
|
-
import { processBillPayment } from '../../billing.resource';
|
|
9
|
-
import type { LineItem, MappedBill } from '../../types';
|
|
10
|
-
import type { BillingConfig } from '../../config-schema';
|
|
11
|
-
import { apiBasePath } from '../../constants';
|
|
12
|
-
import styles from './bill-waiver-form.scss';
|
|
13
|
-
|
|
14
|
-
type BillWaiverFormProps = {
|
|
15
|
-
bill: MappedBill;
|
|
16
|
-
lineItems: Array<LineItem>;
|
|
17
|
-
setPatientUuid: (patientUuid) => void;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const BillWaiverForm: React.FC<BillWaiverFormProps> = ({ bill, lineItems, setPatientUuid }) => {
|
|
21
|
-
const { t } = useTranslation();
|
|
22
|
-
const [waiverAmount, setWaiverAmount] = useState(0);
|
|
23
|
-
const totalAmount = calculateTotalAmount(lineItems);
|
|
24
|
-
const billTotal = bill.totalAmount ?? totalAmount;
|
|
25
|
-
const { defaultCurrency, waiverPaymentModeUuid } = useConfig<BillingConfig>();
|
|
26
|
-
const { mutate } = useSWRConfig();
|
|
27
|
-
|
|
28
|
-
if (lineItems?.length === 0) {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const handleProcessPayment = async () => {
|
|
33
|
-
try {
|
|
34
|
-
await processBillPayment(
|
|
35
|
-
{
|
|
36
|
-
instanceType: waiverPaymentModeUuid,
|
|
37
|
-
amount: billTotal,
|
|
38
|
-
amountTendered: Number(waiverAmount) || 0,
|
|
39
|
-
},
|
|
40
|
-
bill.uuid,
|
|
41
|
-
);
|
|
42
|
-
showSnackbar({
|
|
43
|
-
title: t('billWaiver', 'Bill waiver'),
|
|
44
|
-
subtitle: t('billWaiverSuccess', 'Bill waiver successful'),
|
|
45
|
-
kind: 'success',
|
|
46
|
-
isLowContrast: true,
|
|
47
|
-
});
|
|
48
|
-
setPatientUuid('');
|
|
49
|
-
mutate((key) => typeof key === 'string' && key.startsWith(`${apiBasePath}bill?v=full`), undefined, {
|
|
50
|
-
revalidate: true,
|
|
51
|
-
});
|
|
52
|
-
} catch (error) {
|
|
53
|
-
showSnackbar({
|
|
54
|
-
title: t('billWaiver', 'Bill waiver'),
|
|
55
|
-
subtitle: t('billWaiverError', 'Bill waiver failed {{error}}', { error: error?.message }),
|
|
56
|
-
kind: 'error',
|
|
57
|
-
isLowContrast: true,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
return (
|
|
63
|
-
<Form className={styles.billWaiverForm} aria-label={t('waiverForm', 'Waiver form')}>
|
|
64
|
-
<hr />
|
|
65
|
-
<Stack gap={7}>
|
|
66
|
-
<FormGroup legendText="">
|
|
67
|
-
<section className={styles.billWaiverDescription}>
|
|
68
|
-
<label className={styles.label}>{t('billItems', 'Bill Items')}</label>
|
|
69
|
-
<p className={styles.value}>
|
|
70
|
-
{t('billName', '{{billName}}', {
|
|
71
|
-
billName: lineItems.map((item) => item.item || item.billableService).join(', ') ?? '--',
|
|
72
|
-
})}
|
|
73
|
-
</p>
|
|
74
|
-
</section>
|
|
75
|
-
<section className={styles.billWaiverDescription}>
|
|
76
|
-
<label className={styles.label}>{t('billTotal', 'Bill total')}</label>
|
|
77
|
-
<p className={styles.value}>{convertToCurrency(billTotal, defaultCurrency)}</p>
|
|
78
|
-
</section>
|
|
79
|
-
|
|
80
|
-
<Layer className={styles.formControlLayer}>
|
|
81
|
-
<NumberInput
|
|
82
|
-
id="waiver-amount"
|
|
83
|
-
allowEmpty
|
|
84
|
-
aria-label={t('amountToWaiveAriaLabel', 'Enter amount to waive')}
|
|
85
|
-
disableWheel
|
|
86
|
-
helperText={t('amountToWaiveHelper', 'Specify the amount to be deducted from the bill')}
|
|
87
|
-
hideSteppers
|
|
88
|
-
invalidText={t('invalidWaiverAmount', 'Invalid waiver amount')}
|
|
89
|
-
label={t('amountToWaiveLabel', 'Amount to waive')}
|
|
90
|
-
max={billTotal}
|
|
91
|
-
min={0}
|
|
92
|
-
onChange={(_, { value }) => setWaiverAmount(Number(value) || 0)}
|
|
93
|
-
value={waiverAmount}
|
|
94
|
-
/>
|
|
95
|
-
</Layer>
|
|
96
|
-
</FormGroup>
|
|
97
|
-
<div className={styles.buttonContainer}>
|
|
98
|
-
<Button kind="tertiary" renderIcon={TaskAdd} onClick={handleProcessPayment}>
|
|
99
|
-
{t('postWaiver', 'Post waiver')}
|
|
100
|
-
</Button>
|
|
101
|
-
</div>
|
|
102
|
-
</Stack>
|
|
103
|
-
</Form>
|
|
104
|
-
);
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export default BillWaiverForm;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@use '@carbon/layout';
|
|
2
|
-
@use '@carbon/type';
|
|
3
|
-
|
|
4
|
-
.billWaiverForm {
|
|
5
|
-
margin-top: layout.$spacing-05;
|
|
6
|
-
padding: 0 layout.$spacing-05;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.buttonContainer {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: flex-end;
|
|
12
|
-
margin-top: -1rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.formControlLayer {
|
|
16
|
-
padding: layout.$spacing-05 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.billWaiverDescription {
|
|
20
|
-
display: grid;
|
|
21
|
-
grid-template-columns: layout.$spacing-11 1fr;
|
|
22
|
-
column-gap: layout.$spacing-05;
|
|
23
|
-
align-items: center;
|
|
24
|
-
margin-top: layout.$spacing-01;
|
|
25
|
-
margin-bottom: layout.$spacing-03;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.label {
|
|
29
|
-
@include type.type-style('heading-compact-01');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.value {
|
|
33
|
-
@include type.type-style('body-01');
|
|
34
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { ExtensionSlot, UserHasAccess } from '@openmrs/esm-framework';
|
|
3
|
-
import { useBills } from '../../billing.resource';
|
|
4
|
-
import PatientBills from './patient-bills.component';
|
|
5
|
-
import { BillStatus } from '../../types';
|
|
6
|
-
import styles from './bill-waiver.scss';
|
|
7
|
-
|
|
8
|
-
const BillWaiver: React.FC = () => {
|
|
9
|
-
const [patientUuid, setPatientUuid] = useState<string>('');
|
|
10
|
-
const { bills } = useBills(patientUuid);
|
|
11
|
-
|
|
12
|
-
const filterBills =
|
|
13
|
-
bills.filter((bill) => bill?.status !== BillStatus.PAID && patientUuid === bill.patientUuid) ?? [];
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<UserHasAccess privilege="coreapps.systemAdministration">
|
|
17
|
-
<div className={styles.billWaiverContainer}>
|
|
18
|
-
<ExtensionSlot
|
|
19
|
-
name="patient-search-bar-slot"
|
|
20
|
-
state={{
|
|
21
|
-
selectPatientAction: (patientUuid) => setPatientUuid(patientUuid),
|
|
22
|
-
buttonProps: {
|
|
23
|
-
kind: 'primary',
|
|
24
|
-
},
|
|
25
|
-
}}
|
|
26
|
-
/>
|
|
27
|
-
|
|
28
|
-
<PatientBills patientUuid={patientUuid} bills={filterBills} setPatientUuid={setPatientUuid} />
|
|
29
|
-
</div>
|
|
30
|
-
</UserHasAccess>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export default BillWaiver;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
DataTable,
|
|
4
|
-
Layer,
|
|
5
|
-
Table,
|
|
6
|
-
TableBody,
|
|
7
|
-
TableCell,
|
|
8
|
-
TableContainer,
|
|
9
|
-
TableExpandedRow,
|
|
10
|
-
TableExpandHeader,
|
|
11
|
-
TableExpandRow,
|
|
12
|
-
TableHead,
|
|
13
|
-
TableHeader,
|
|
14
|
-
TableRow,
|
|
15
|
-
Tile,
|
|
16
|
-
} from '@carbon/react';
|
|
17
|
-
import { useTranslation } from 'react-i18next';
|
|
18
|
-
import { EmptyCardIllustration, formatDate, parseDate, useConfig } from '@openmrs/esm-framework';
|
|
19
|
-
import { type MappedBill } from '../../types';
|
|
20
|
-
import { convertToCurrency } from '../../helpers';
|
|
21
|
-
import PatientBillsSelections from './bill-selection.component';
|
|
22
|
-
import styles from '../../bills-table/bills-table.scss';
|
|
23
|
-
|
|
24
|
-
type PatientBillsProps = {
|
|
25
|
-
patientUuid: string;
|
|
26
|
-
bills: Array<MappedBill>;
|
|
27
|
-
setPatientUuid: (patientUuid: string) => void;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const PatientBills: React.FC<PatientBillsProps> = ({ patientUuid, bills, setPatientUuid }) => {
|
|
31
|
-
const { t } = useTranslation();
|
|
32
|
-
const { defaultCurrency } = useConfig();
|
|
33
|
-
|
|
34
|
-
if (!patientUuid) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const tableHeaders = [
|
|
39
|
-
{ header: t('date', 'Date'), key: 'date' },
|
|
40
|
-
{ header: t('invoiceNumber', 'Invoice number'), key: 'invoiceNumber' },
|
|
41
|
-
{ header: t('billableService', 'Billable service'), key: 'billableService' },
|
|
42
|
-
{ header: t('totalAmount', 'Total amount'), key: 'totalAmount' },
|
|
43
|
-
];
|
|
44
|
-
|
|
45
|
-
const tableRows = bills.map((bill) => ({
|
|
46
|
-
id: `${bill.uuid}`,
|
|
47
|
-
date: formatDate(parseDate(bill.dateCreated), { mode: 'wide' }),
|
|
48
|
-
invoiceNumber: bill.receiptNumber,
|
|
49
|
-
billableService: bill.billingService,
|
|
50
|
-
totalAmount: convertToCurrency(bill?.totalAmount, defaultCurrency),
|
|
51
|
-
}));
|
|
52
|
-
|
|
53
|
-
if (bills.length === 0 && patientUuid !== '') {
|
|
54
|
-
return (
|
|
55
|
-
<>
|
|
56
|
-
<div style={{ marginTop: '0.625rem' }}>
|
|
57
|
-
<Layer className={styles.emptyStateContainer}>
|
|
58
|
-
<Tile className={styles.tile}>
|
|
59
|
-
<div className={styles.illo}>
|
|
60
|
-
<EmptyCardIllustration />
|
|
61
|
-
</div>
|
|
62
|
-
<p className={styles.content}>{t('noBillToDisplay', 'There are no bills to display for this patient')}</p>
|
|
63
|
-
</Tile>
|
|
64
|
-
</Layer>
|
|
65
|
-
</div>
|
|
66
|
-
</>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return (
|
|
71
|
-
<div style={{ marginTop: '1rem' }}>
|
|
72
|
-
<DataTable rows={tableRows} headers={tableHeaders} size="sm" useZebraStyles>
|
|
73
|
-
{({
|
|
74
|
-
rows,
|
|
75
|
-
headers,
|
|
76
|
-
getHeaderProps,
|
|
77
|
-
getExpandHeaderProps,
|
|
78
|
-
getRowProps,
|
|
79
|
-
getExpandedRowProps,
|
|
80
|
-
getTableProps,
|
|
81
|
-
getTableContainerProps,
|
|
82
|
-
}) => (
|
|
83
|
-
<TableContainer
|
|
84
|
-
title={t('patientBills', 'Patient bills')}
|
|
85
|
-
description={t('patientBillsDescription', 'List of patient bills')}
|
|
86
|
-
{...getTableContainerProps()}>
|
|
87
|
-
<Table {...getTableProps()} aria-label={t('billsTable', 'Bills table')}>
|
|
88
|
-
<TableHead>
|
|
89
|
-
<TableRow>
|
|
90
|
-
<TableExpandHeader enableToggle {...getExpandHeaderProps()} />
|
|
91
|
-
{headers.map((header, i) => (
|
|
92
|
-
<TableHeader
|
|
93
|
-
key={i}
|
|
94
|
-
{...getHeaderProps({
|
|
95
|
-
header,
|
|
96
|
-
})}>
|
|
97
|
-
{header.header}
|
|
98
|
-
</TableHeader>
|
|
99
|
-
))}
|
|
100
|
-
</TableRow>
|
|
101
|
-
</TableHead>
|
|
102
|
-
<TableBody>
|
|
103
|
-
{rows.map((row, index) => (
|
|
104
|
-
<React.Fragment key={row.id}>
|
|
105
|
-
<TableExpandRow
|
|
106
|
-
{...getRowProps({
|
|
107
|
-
row,
|
|
108
|
-
})}>
|
|
109
|
-
{row.cells.map((cell) => (
|
|
110
|
-
<TableCell key={cell.id}>{cell.value}</TableCell>
|
|
111
|
-
))}
|
|
112
|
-
</TableExpandRow>
|
|
113
|
-
<TableExpandedRow
|
|
114
|
-
colSpan={headers.length + 1}
|
|
115
|
-
className="demo-expanded-td"
|
|
116
|
-
{...getExpandedRowProps({
|
|
117
|
-
row,
|
|
118
|
-
})}>
|
|
119
|
-
<div>
|
|
120
|
-
<PatientBillsSelections bills={bills[index]} setPatientUuid={setPatientUuid} />
|
|
121
|
-
</div>
|
|
122
|
-
</TableExpandedRow>
|
|
123
|
-
</React.Fragment>
|
|
124
|
-
))}
|
|
125
|
-
</TableBody>
|
|
126
|
-
</Table>
|
|
127
|
-
</TableContainer>
|
|
128
|
-
)}
|
|
129
|
-
</DataTable>
|
|
130
|
-
</div>
|
|
131
|
-
);
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export default PatientBills;
|
package/webpack.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('openmrs/default-webpack-config');
|