Irreversible Credit

When you create a credit, it is valid to omit the patient set for the line item.

However, the same is not true for an invoice - you must set the patient.

Hence, if you create a credit and finalise it, then you cannot reverse the credit because the invoice being created fails validation because of the missing patient.

[The remedy this, I am about to use SQL to change un-finalise the tranaction. I will then use the web interface to set the patient, and then use SQL to change the status back to POSTED. Then I will reverse the credit.]

I am not sure what the real solution is.  I suspect that the 'don't have to set the patient for a credit' is a relaxation of a validation that has been needed for some data migrations from other VPMS's.

My inclination is to tighten the rules for a credit so that any credit you can create can be reversed.

[This problem was found on a 1.9 system, but will also apply to 1.8 since that was when the ability to reverse transactions was added.]

Regards, Tim G

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Irreversible Credit

This is related to OVPMS-1515

Credits are also used for Counter Sale reversals, which don't have a patient.

There needs to be two credit archetypes, one for reversing invoices (the current Credit), and one for reversing counter sales (a new Counter Sale Credit).

The patient on the Credit Item would be changed to be required.

Syndicate content