pshung29 / turbocare

Automatically exported from code.google.com/p/turbocare
0 stars 0 forks source link

Bill-Edit-Refund calculation #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Registration->Billing->Edit item -> Refund.
2. Bill amount and right side patient information bill amount not tallying
with each other.
3. If you click on confirm payment once again, you can see the difference
balance against patient account. After refund made the amount is not
showing correctly.

What is the expected output? What do you see instead?
There is some problem with patient balance account. It should tallied. See
the screen shot-4 file attached. (bill amount is 765 and patient
information amount showing 800 after refunded 35, but Screen shot-5 showing
correctly)
What version of the product are you using? On what operating system?
ver-259.

Please provide any additional information below.
Command Shell:
_64; en-US; rv:1.8.1.4) Gecko/20060601 Firefox/2.0.0.4 (Ubuntu-edgy)"
2007-06-19 08:43:55,144 turbocare.controllers DEBUG SAVING... more than one
entry: 4, 4, 4,4, 4, 4,4, 4, 4,4
2007-06-19 08:43:55,144 turbocare.controllers DEBUG SAVING... more than one
entry: 4, 4, 4,4, 4, 4,4, 4, 4,4
2007-06-19 08:43:55,145 turbocare.controllers DEBUG ... IsModfied: true
2007-06-19 08:43:55,145 turbocare.controllers DEBUG ... IsModfied: true
2007-06-19 08:43:55,146 turbocare.controllers DEBUG ...Saving receipt item...
2007-06-19 08:43:55,146 turbocare.controllers DEBUG ...Saving receipt item...
2007-06-19 08:43:55,147 turbocare.controllers DEBUG ...CustomerID: 43,
ReceiptId=14, ReceiptItemId=36, CatalogItemId=1979,               
Qty=12.0, StockLocationId=4143, StockLocationIDset=4148, EncounterId=14
2007-06-19 08:43:55,147 turbocare.controllers DEBUG ...CustomerID: 43,
ReceiptId=14, ReceiptItemId=36, CatalogItemId=1979,               
Qty=12.0, StockLocationId=4143, StockLocationIDset=4148, EncounterId=14
2007-06-19 08:43:55,149 turbocare.controllers DEBUG ....Check/Update the
receipt item
2007-06-19 08:43:55,149 turbocare.controllers DEBUG ....Check/Update the
receipt item
2007-06-19 08:43:55,159 turbocare.controllers DEBUG ....modifying a
pre-defined StockLocationID
2007-06-19 08:43:55,159 turbocare.controllers DEBUG ....modifying a
pre-defined StockLocationID
2007-06-19 08:43:55,161 turbocare.controllers DEBUG ....Updating the
quantity on the receipt item, from 10 to 12
2007-06-19 08:43:55,161 turbocare.controllers DEBUG ....Updating the
quantity on the receipt item, from 10 to 12
2007-06-19 08:43:55,165 turbocare.controllers DEBUG ....changing the
quantity which we originally transferred
2007-06-19 08:43:55,165 turbocare.controllers DEBUG ....changing the
quantity which we originally transferred
2007-06-19 08:43:55,166 turbocare.controllers DEBUG ....modifying the stock
transfer to the new amount
2007-06-19 08:43:55,166 turbocare.controllers DEBUG ....modifying the stock
transfer to the new amount
2007-06-19 08:43:55,169 turbocare.controllers DEBUG ... IsModfied: false
2007-06-19 08:43:55,169 turbocare.controllers DEBUG ... IsModfied: false
2007-06-19 08:43:55,172 turbocare.controllers DEBUG ... IsModfied: false
2007-06-19 08:43:55,172 turbocare.controllers DEBUG ... IsModfied: false
2007-06-19 08:43:55,173 turbocare.controllers DEBUG ... IsModfied: false
2007-06-19 08:43:55,173 turbocare.controllers DEBUG ... IsModfied: false
2007-06-19 08:43:55,174 turbocare.controllers DEBUG SAVE RECEIPT: Update
the receipt total payment
2007-06-19 08:43:55,174 turbocare.controllers DEBUG SAVE RECEIPT: Update
the receipt total payment
2007-06-19 08:43:55,192 turbocare.controllers DEBUG AutoTransferReceiptItems
2007-06-19 08:43:55,192 turbocare.controllers DEBUG AutoTransferReceiptItems
2007-06-19 08:43:55,211 turbocare.controllers DEBUG CustomerID: , ReceiptID: 14
2007-06-19 08:43:55,211 turbocare.controllers DEBUG CustomerID: , ReceiptID: 14
2007-06-19 08:43:55,212 turbocare.controllers DEBUG LOADING... using
ReceiptID 14
2007-06-19 08:43:55,212 turbocare.controllers DEBUG LOADING... using
ReceiptID 14
127.0.0.1 - tushar "POST /billing/SaveReceipt HTTP/1.1" 200 1905
"http://localhost:8080/billing/index?receipt_id=14" "Mozilla/5.0 (X11; U;
Linux x86_64; en-US; rv:1.8.1.4) Gecko/20060601 Firefox/2.0.0.4 (Ubuntu-edgy)"
2007-06-19 08:44:31,549 turbocare.controllers DEBUG MakeReceiptPayment
2007-06-19 08:44:31,549 turbocare.controllers DEBUG MakeReceiptPayment
2007-06-19 08:44:31,573 turbocare.controllers DEBUG ....Current credit: 800
2007-06-19 08:44:31,573 turbocare.controllers DEBUG ....Current credit: 800
2007-06-19 08:44:31,835 turbocare.controllers DEBUG ....Money to spend: 800
2007-06-19 08:44:31,835 turbocare.controllers DEBUG ....Money to spend: 800
2007-06-19 08:44:31,843 turbocare.controllers DEBUG AutoTransferReceiptItems
2007-06-19 08:44:31,843 turbocare.controllers DEBUG AutoTransferReceiptItems
2007-06-19 08:44:31,860 turbocare.controllers DEBUG CustomerID: , ReceiptID: 14
2007-06-19 08:44:31,860 turbocare.controllers DEBUG CustomerID: , ReceiptID: 14
2007-06-19 08:44:31,861 turbocare.controllers DEBUG LOADING... using
ReceiptID 14
2007-06-19 08:44:31,861 turbocare.controllers DEBUG LOADING... using
ReceiptID 14
127.0.0.1 - tushar "GET
/billing/MakeReceiptPayment?ReceiptID=14&CashAmt=765&CashNotes=&InsrAmt=0.0&Insr
Notes=&TotalCashAmt=100
HTTP/1.1" 200 1901 "http://localhost:8080/billing/index?receipt_id=14"
"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.4) Gecko/20060601
Firefox/2.0.0.4 (Ubuntu-edgy)"

Original issue reported on code.google.com by tushar.c...@gmail.com on 19 Jun 2007 at 3:23

Attachments:

GoogleCodeExporter commented 8 years ago
I think the problem is due to the related tables are not updated properly and 
same
time. say, one patient has 20 paracitamol and he had paid for that. Now we are
editing from 20 to 15 nos. So we have to refund Rs 250/- (Rs 50 each). While 
pressing
refund button it is showing confirm 250 return OK and the right side 
information is
also showing same. Upto this no problem. But if you press the confirm-payment 
button
now you can see there is still 250 balance in patient account. If you press 
"pay"
button then the display " Continue with customer making payment of rs 250? So I 
think
it need correction. See the attached files. Customer balance showing wrongly.
Customer should not make payment and get refund for one correction. It should be
either payment or refund. 

Original comment by tushar.c...@gmail.com on 19 Jun 2007 at 9:14

Attachments:

GoogleCodeExporter commented 8 years ago
Bill payments is the most complicated part of the most complicated part of the
program.  I worked very long on this already, and it is very tricky work, but 
I'll
take a close look at the problem.  It will take me sometime to investigate this 
one.
 Because of my schedule, I will only be able to look at it next week (since I have
more time then).

Original comment by umpen...@gmail.com on 19 Jun 2007 at 11:52

GoogleCodeExporter commented 8 years ago
Look at revision 262.  The following is what is now happening:

1. The program now looks for an Insurance Firm called "Hospital".  This will be 
used
for hospital insurance (for employees, etc...).  The Insurance Number defaults 
to the
Patient/Person id.

2. If the "Hospital" insurance firm doesn't exist when the program starts, the
program will automatically create it.

3. The billing totals on the right hand side now show no errors.  Also, 
previously,
totals did not include insurance amounts correctly.  Now they have insurance 
amounts
included.

Check to see if the refund happens correctly now.

Original comment by umpen...@gmail.com on 2 Jul 2007 at 7:39

GoogleCodeExporter commented 8 years ago

Original comment by umpen...@gmail.com on 12 Jul 2007 at 2:37