Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032916
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 07. Sales managementmajoralways2016-05-10 12:592016-05-23 13:59
ReporterpsanjuanView Statuspublic 
Assigned Toaferraz 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision4d626559c588
ProjectionnoneETAnoneTarget Version3.0PR16Q2
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionProfessional ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned Tovmromanos
Web browser
ModulesCore
Regression levelPackaging and release
Regression date2016-01-13
Regression introduced in releasemain
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/cac91026199d [^]
Triggers an Emergency PackNo
Summary

0032916: Wrong payment status as well payment in details when partially paying a Reversed Sales Invoice

DescriptionWrong payment status as well payment details when partially paying a Reversed Sales Invoice
Steps To Reproduce- Go to Sales Invoice window. Create a new one for F&B España, Alimentos BP.
- Change document type to "Reversed Sales Invoice".
- Save it

- Go to lines and create a new one.
** Product = Agua sin Gas 1
** Invoiced Quantity = -500
- Complete it. (If there is any credit available, do NOT use it).

- Press Add Payment.
- Change Actual Payment amount to -500.00
- Make sure only the reversed sales invoice just created is selected. Change its amount from -925.65 to -500.00 (see Issue 32914_Image 1).
- Press Done

- Realize that Payment Complete status of the invoice has turned into Yes (which is not correct).

- Go to Payment Plan tab and check neither received amount, outstanding amount are correct.

- Navigate to the payment in created and realize that not only the total reversed sales invoice amount has been paid, but also some credit amount has been generated. (see Issue32914_Image2)

Take note that same error is happening in purchase.
Proposed SolutionPayment Complete status should not turn into Yes because the reverse sales invoice has been partially paid.

Payment Plan should be updated properly

Payment In created should be the correct one base on actual payment entered.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0032914 closedaferraz Wrong payment status as well payment in details when partially paying a Reversed Sales Invoice 

-  Notes
(0086651)
hgbot (developer)
2016-05-23 13:43

Repository: erp/backports/3.0PR16Q2
Changeset: 4d626559c58861630878ffafd67e9b0380166625
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu May 19 15:15:02 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q2/rev/4d626559c58861630878ffafd67e9b0380166625 [^]

Fixes issue 32916: Fix properly issue 31457

Change getOrderedPaymentScheduleDetails method in AddPaymentActionHandler class to order by absolute value of FIN_PaymentScheduleDetail.PROPERTY_AMOUNT property.
Change also the manage negative amounts check to recalculate remainingAmount if it is lower than outstandingAmount in case remainingAmount is negative.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentActionHandler.java
---
(0086652)
hgbot (developer)
2016-05-23 13:43

Repository: erp/backports/3.0PR16Q2
Changeset: d74e284a07d013ae4bea15ac44578a4285a503c6
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Mon May 23 13:43:19 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q2/rev/d74e284a07d013ae4bea15ac44578a4285a503c6 [^]

Related to issue 32916: Update copyright year

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentActionHandler.java
---
(0086655)
vmromanos (manager)
2016-05-23 13:44

Code review OK

- Issue History
Date Modified Username Field Change
2016-05-10 14:19 aferraz Type defect => backport
2016-05-10 14:19 aferraz Target Version => 3.0PR16Q2
2016-05-10 14:19 aferraz Assigned To Triage Finance => AtulOpenbravo
2016-05-23 10:07 aferraz Assigned To AtulOpenbravo => aferraz
2016-05-23 13:43 hgbot Checkin
2016-05-23 13:43 hgbot Note Added: 0086651
2016-05-23 13:43 hgbot Status scheduled => resolved
2016-05-23 13:43 hgbot Resolution open => fixed
2016-05-23 13:43 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q2/rev/4d626559c58861630878ffafd67e9b0380166625 [^]
2016-05-23 13:43 hgbot Checkin
2016-05-23 13:43 hgbot Note Added: 0086652
2016-05-23 13:44 vmromanos Review Assigned To => vmromanos
2016-05-23 13:44 vmromanos Note Added: 0086655
2016-05-23 13:44 vmromanos Status resolved => closed
2016-05-23 13:59 vmromanos Severity critical => major


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker