The accounting department keeps track
of bills.
AnimalProgressFixture
|
no current accounts
|
|
|
|
|
new case
|
Susie
|
Rankin
|
|
|
diagnosis
|
therapeutic
truck ride
|
|
|
|
charge
|
30
|
|
|
|
CurrentAccountFixture
|
owner
|
patient |
owner charges
|
owner balance
due |
status
|
state charges
|
clinic charges
|
Rankin |
Susie
|
30
|
30
|
in clinic |
0
|
0
|
A patient is in the clinic until released.
AnimalProgressFixture
|
payment |
30 |
|
|
|
order |
discharge |
|
|
|
CurrentAccountFixture
|
owner
|
patient |
owner charges
|
owner balance
due |
status
|
state charges
|
clinic charges
|
Rankin |
Susie
|
30
|
0
|
in clinic |
0
|
0
|
The animal remains on the books until it's both paid for and released.
In this example, the releasing comes second, which is the normal order.
AnimalProgressFixture
|
released
|
|
|
|
|
CurrentAccountFixture
|
owner |
patient |
owner charges
|
owner balance
due |
status
|
state charges
|
clinic charges
|
Here's the other order:
AnimalProgressFixture
|
no current accounts
|
|
|
|
|
new case
|
Susie
|
Rankin
|
|
|
diagnosis
|
therapeutic
truck ride
|
|
|
|
charge
|
30
|
|
|
|
order
|
discharge
|
|
|
|
At this point, things are as above.
CurrentAccountFixture
|
owner
|
patient |
owner charges
|
owner balance
due |
status
|
state charges
|
clinic charges
|
Rankin |
Susie
|
30
|
30
|
in clinic |
0
|
0
|
Because Rankin is a long-standing client, he can take the animal before
paying.
AnimalProgressFixture
|
released
|
|
|
|
|
CurrentAccountFixture
|
owner
|
patient |
owner charges
|
owner balance
due |
status
|
state charges
|
clinic charges
|
Rankin |
Susie
|
30
|
30
|
released |
0
|
0
|
He pays in installments.
AnimalProgressFixture
|
days pass
|
14
|
|
|
|
payment |
10
|
|
|
|
CurrentAccountFixture
|
owner
|
patient |
owner charges
|
owner balance
due |
status
|
state charges
|
clinic charges
|
Rankin |
Susie
|
30
|
20
|
released |
0
|
0
|
The bill is finally pai
AnimalProgressFixture
|
days pass
|
14
|
|
|
|
payment |
20
|
|
|
|
CurrentAccountFixture
|
owner
|
patient |
owner charges
|
owner balance
due |
status
|
state charges
|
clinic charges
|
Some charges can be attributed to the state or the clinic. They're not
part of the owner's balance due.
AnimalProgressFixture
|
no current accounts
|
|
|
|
|
new case
|
191919 |
Peoria |
|
|
charge
|
30
|
|
|
|
charge
|
60 |
clinic |
|
|
charge
|
90 |
state
|
|
|
CurrentAccountFixture
|
owner
|
patient |
owner charges
|
owner balance
due |
status
|
state charges
|
clinic charges
|
Peoria |
191919 |
30
|
30
|
in clinic |
90
|
60
|