Billing Invoice Provider update doesn't refresh provider ohip no.

Preconditions

None.

Steps to Reproduce

1. Create an invoice for Provider A
2. Go to Administration > Billing > Billing Correction
3. Enter in the Invoice No. for the bill created in Step 1
4. Change the Provider: dropdown to Provider B
5. Save the Invoice

Expected Result

After switching the provider to provider B and saving the invoice, db table billing_on_cheader1 will switch the value of field provider_ohip_no from Provider A's ohip no. to Provider B's.

Observed Result

If you check the table billing_on_cheader1 before switching the bill from Provider A -> Provider B, the provider_ohip_no field will match Provider A's ohip_no on their provider record. If you check the same field after saving Provider B as the provider of the invoice, the provider_ohip_no field remains Provider A's ohip no, even though the provider_no field is now Provider B's.

Additional Comments

This causes issues processing the RA. The field provider_ohip_no identifies the provider when the invoice is submitted to OHIP for payment. When the RA is returned from OHIP and processed in OSCAR, there are issues settling the invoice (the invoice row in billing_on_cheader1 becomes status: S, paid: 0.00) because the provider_no and provider_ohip_no are not related.

Assignee

Unassigned

Reporter

Melissa Beldman

Labels

OSCAR Build Date

2018/07/04

OSCAR Build Tag

oscar-stable-805

Client Browser

Chrome

Client OS

Windows 10

Are you or your organization planning on submitting a fix for this bug in the next 30 days?

No

Validated by Reporter

No

SourceForge Link

None

SourceForge Reporter

None

SourceForge Assigned To

None

SourceForge Date Created

None

SourceForge ID

None

Affects versions

Priority

6
Configure