Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012559Openbravo ERPZ. Otherspublic2010-03-04 08:062010-12-09 15:59
sureshbabu 
mirurita 
highminoralways
closedfixed 
30
2.50 
2.502.50 
Advanced Payables and Receivables Mngmt
No
0012559: When Additional sales order is selected, There is difference of field amount not getting updated rightly in Add Payment window
When Additional sales order/invoice is selected, There is difference of field amount not getting updated rightly in Add Payment window

Create and complete a standard sales order for BP: Millman Ltd. (sales order id:500xx and order amount 6.73)



Login with user having access to Openbravo admin role
Navigate to Sales invoice window (Sales Management || Transactions || Sales Invoice || Header)
Click “New” to create a new record
Then Select

• BP: Millman Ltd.

And verify the below details are getting filled automatically, once the user selects the BP

• Price List: General Sales
• Currency: EUR
• Form of Payment: Money Order
• Payment Terms: Immediate

Change the payment Terms field from Immediate to “One Month”

    
Navigate to “Lines” tab
Click “New” to create new line item details

• Product: Hammer
• Qty: 10
• Net unit Price: 5.80
• Tax: VAT 16%

Move back to “Header” tab
Verify the amount details

• Total Net Amount: 58.00
• Total Gross Amount: 67.28

Click “Complete” button
“Process Completed Successfully” message appears


Move to Payment tab, and verify one line with a due date

Line 1: Due date: 05/04/2010 and Amount: 67.28

Move to Payment Plan tab and verify the schedule event appears

Line 1: Due date: 05/04/2010, expected Amount: 67.28

Then move back to header tab and click “Add Payments From Invoice” button

Verify the below values

Expected Payment: 67.28
Total: 0.00
There is a difference of: 67.28

In Actual Payment field don’t enter any value

In select additional sales order or invoice filters, select

• Transaction Type: Sales order

One can see the above created Sales order Row is added to the Grid with expected amount and outstanding amount as 6.73
In Grid table, select the Select all lines check box, or check the sales order line item check box

Expected Payment field gets updated to 74.01

But the There is a difference of field remains same as 67.28

Expected result: There is a difference of field also should change to 74.01
Advance Rec & Payables
jpg When Additional sales order is selected, Expected Paymnet amount gets rightly updated but the There is difference of field amount not getting updated dynamically.JPG (207,862) 2010-03-04 08:06
https://issues.openbravo.com/file_download.php?file_id=2306&type=bug
jpg
Issue History
2010-03-04 08:06sureshbabuNew Issue
2010-03-04 08:06sureshbabuFile Added: When Additional sales order is selected, Expected Paymnet amount gets rightly updated but the There is difference of field amount not getting updated dynamically.JPG
2010-03-04 08:06sureshbabuTag Attached: Advance Rec & Payables
2010-03-12 19:09gorkaionAssigned To => mirurita
2010-03-12 19:09gorkaionStatusnew => acknowledged
2010-03-17 18:41hgbotCheckin
2010-03-17 18:41hgbotNote Added: 0025580
2010-03-17 18:41hgbotStatusacknowledged => resolved
2010-03-17 18:41hgbotResolutionopen => fixed
2010-03-17 18:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/faa6d10adc322347db35f467990411c573f2c919 [^]
2010-03-23 08:22sureshbabuNote Added: 0025661
2010-03-23 08:22sureshbabuStatusresolved => new
2010-03-23 08:22sureshbabuResolutionfixed => open
2010-03-23 16:20gorkaionStatusnew => acknowledged
2010-04-12 18:42miruritaStatusacknowledged => scheduled
2010-04-12 18:42miruritafix_in_branch => pi
2010-04-12 18:46miruritaNote Added: 0026080
2010-04-12 18:46miruritaStatusscheduled => resolved
2010-04-12 18:46miruritaResolutionopen => fixed
2010-04-28 12:05sureshbabuNote Added: 0026755
2010-04-28 12:05sureshbabuStatusresolved => closed
2010-04-28 12:05sureshbabuFixed in Version => 2.50
2010-12-09 15:59anonymoussf_bug_id0 => 3133043

Notes
(0025580)
hgbot   
2010-03-17 18:41   
Repository: erp/pmods/org.openbravo.advpaymentmngt
Changeset: faa6d10adc322347db35f467990411c573f2c919
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Wed Mar 17 18:47:55 2010 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/faa6d10adc322347db35f467990411c573f2c919 [^]

Fixed issue 12674. Fixed issue 12559.Fixed several javascript issues.

---
M src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.html
M src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.html
M src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentGrid.srpt
M src/org/openbravo/advpaymentmngt/ad_actionbutton/SelectExpectedPayments.html
M web/org.openbravo.advpaymentmngt/FIN_Utilities.js
---
(0025661)
sureshbabu   
2010-03-23 08:22   
Hi,

Still i am finding wrong value getting updated in both Expected Payment & Difference of field, Every time when i change the value in Transaction type, some random value getting added..



Thanks
Suresh
(0026080)
mirurita   
2010-04-12 18:46   
Suresh,

After fixing this issue [1] the amount update is working properly.
I've followed the steps to reproduce and it worked.
Could you please verify it?

Thanks,
[1] https://issues.openbravo.com/view.php?id=12747 [^]
(0026755)
sureshbabu   
2010-04-28 12:05   
TESTED