Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012813Openbravo ERPZ. Otherspublic2010-03-26 07:492010-12-09 16:00
sureshbabu 
mirurita 
normalminoralways
closedfixed 
30
2.50 
2.50 
Advanced Payables and Receivables Mngmt
No
0012813: Amount column value mismatches in FIN_Payment & FIN_Payment_Detail
i created a two invoices each of invoice amount for 52.20 euros for BP: Mc Givers.
Then i created Payment document using Make Payment window(Procurement Management || Transactions || Make Payment || Header), by adding a invoice document of payment amount 52.20.

Then i verified the amount column in both the tables FIN_Payment, FIN_Payment_Detail using the below query

select Amount from FIN_Payment where documentno='700000';
Select sum(amount) from FIN_Payment_Detail where FIN_PAYMENT_ID IN (select FIN_PAYMENT_ID from FIN_Payment where documentno='700000');

Both shows the same amount.(52.2)

But later i "Reactivated" the above payment document and added one more purchase invoice of payment amount 52.20(Now there are two lines in lines tab)


Then i executed the below query but i am finding the difference in sum of amount

select Amount from FIN_Payment where documentno='700000'; (Result: 52.2)
Select sum(amount) from FIN_Payment_Detail where FIN_PAYMENT_ID IN (select FIN_PAYMENT_ID from FIN_Payment where documentno='700000'); (Result: 102.4)
Advance Rec & Payables
jpg Make payment is reactivated and addd one more invoice document.JPG (85,590) 2010-03-26 07:49
https://issues.openbravo.com/file_download.php?file_id=2385&type=bug
jpg
Issue History
2010-03-26 07:49sureshbabuNew Issue
2010-03-26 07:49sureshbabuFile Added: Make payment is reactivated and addd one more invoice document.JPG
2010-03-26 08:01sureshbabuTag Attached: Advance Rec & Payables
2010-03-26 08:01sureshbabuAssigned To => gorkaion
2010-04-13 11:50gorkaionStatusnew => scheduled
2010-04-13 11:50gorkaionNote Added: 0026121
2010-04-13 11:50gorkaionAssigned Togorkaion => mirurita
2010-04-13 11:50gorkaionfix_in_branch => pi
2010-04-22 13:18miruritaNote Added: 0026570
2010-04-22 13:18miruritaStatusscheduled => resolved
2010-04-22 13:18miruritaResolutionopen => fixed
2010-04-28 11:14sureshbabuNote Added: 0026748
2010-04-28 11:14sureshbabuStatusresolved => closed
2010-04-28 11:14sureshbabuFixed in Version => 2.50
2010-12-09 16:00anonymoussf_bug_id0 => 3133086

Notes
(0026121)
gorkaion   
2010-04-13 11:50   
when the payment is reactivated all the detail lines will be removed, so this issue will be fixed with spreadsheet's task 633
(0026570)
mirurita   
2010-04-22 13:18   
Fixed on org.openbravo.advpaymentmngt revision 171:7e15411b4f29

https://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/7e15411b4f29 [^]
(0026748)
sureshbabu   
2010-04-28 11:14   
Tested working fine