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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0026995
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 03. Procurement managementcriticalalways2014-07-02 10:302014-08-08 18:52
ReporterdaniOpenbravoView Statuspublic 
Assigned ToSandrahuguet 
PriorityimmediateResolutionfixedFixed in Version3.0PR14Q3
StatusclosedFix in branchFixed in SCM revision7feca0cc80f3
ProjectionnoneETAnoneTarget Version3.0PR14Q3
OSLinux 64 bitDatabasePostgreSQLJava version1.6
OS Version13.04Database version8.04Ant version1.7
Product VersionpiSCM revision 
Review Assigned Toumartirena
Web browserGoogle Chrome
ModulesCore
Regression levelPre packaging ( pi )
Regression date2014-06-19
Regression introduced in releasepi
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi-aprm-windows/rev/45cdf404c7a6 [^]
Triggers an Emergency PackNo
Summary

0026995: Not able to process a payment out when "using credit" and total amount to pay is negative

DescriptionError "Not all the available amount has been allocated." appears when "using credit" and total amount to pay is negative.
Steps To Reproduce1. Register Payment Out for "Bebidas Alegres" and set "Generate Credit" =50. Process payment
2. Register Purchase Invoice for "Bebidas Alegres", add any line and set unit price=60. Process invoice and DO NOT use credit to pay it
3. Register other Purchase Invoice for "Bebidas Alegres", add any line and set negative price=-100. Process invoice
4. Register Payment Out for "Bebidas Alegres" and "Add details". Select option "use available credit" and also select previous invoices (positive and negative one). Process payment and verify that error "Not all the available amount has been allocated." is shown.
Proposed SolutionCheck the validation:
if (actualPayment.compareTo(total) > 0 && totalOustandingAmount.compareTo(amountInvOrds.add(totalWriteOffAmount)) > 0) {...}
on line 778 (ob-aprm-addPayment.js).
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0068501)
hgbot (developer)
2014-07-02 11:25

Repository: erp/devel/pi
Changeset: 7feca0cc80f3912765faf46526c81be759ade975
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Jul 02 11:24:49 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7feca0cc80f3912765faf46526c81be759ade975 [^]

Fixes bug 26995 oustandingAmount is wrong calculated in done validation

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0068502)
umartirena (reporter)
2014-07-02 11:31

Tested and verified
(0069128)
hudsonbot (developer)
2014-08-08 18:52

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/4450016dee64 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2014-07-02 10:30 daniOpenbravo New Issue
2014-07-02 10:30 daniOpenbravo Assigned To => Sandrahuguet
2014-07-02 10:30 daniOpenbravo Web browser => Google Chrome
2014-07-02 10:30 daniOpenbravo Modules => Core
2014-07-02 10:30 daniOpenbravo Triggers an Emergency Pack => No
2014-07-02 11:22 Sandrahuguet Web browser Google Chrome => Google Chrome
2014-07-02 11:22 Sandrahuguet Regression level => Pre packaging ( pi )
2014-07-02 11:22 Sandrahuguet Regression date => 2014-06-19
2014-07-02 11:22 Sandrahuguet Regression introduced in release => pi
2014-07-02 11:22 Sandrahuguet Regression introduced by commit => https://code.openbravo.com/erp/devel/pi-aprm-windows/rev/45cdf404c7a6 [^]
2014-07-02 11:25 hgbot Checkin
2014-07-02 11:25 hgbot Note Added: 0068501
2014-07-02 11:25 hgbot Status new => resolved
2014-07-02 11:25 hgbot Resolution open => fixed
2014-07-02 11:25 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7feca0cc80f3912765faf46526c81be759ade975 [^]
2014-07-02 11:31 umartirena Review Assigned To => umartirena
2014-07-02 11:31 umartirena Note Added: 0068502
2014-07-02 11:31 umartirena Status resolved => closed
2014-07-02 11:31 umartirena Fixed in Version => PR14Q3
2014-08-08 18:52 hudsonbot Checkin
2014-08-08 18:52 hudsonbot Note Added: 0069128


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker