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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033125
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementtrivialhave not tried2016-06-02 18:522016-06-02 18:52
ReportershuehnerView Statuspublic 
Assigned ToTriage Omni OMS 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033125: Minor cleanup in AdvPaymentMngtDao.getFinancialAccountPaymentMethod to simplify code

DescriptionSmall clean up + maybe style improvement

That function add an extra isActive filter even is same is auto-added by dal filtering (at sql level) twice of isActive true.

Also i has a slightly strange way to get for 'rows found' via capturing IndexOutOfBoundsException instead of a simple != null

(end of ) SQL run for the function:
ticurrency as Payin29_266_0_, this_.Payout_IsMulticurrency as Payout30_266_0_, this_.Isdefault as Isdefault266_0_, this_.Payin_Invoicepaidstatus as Payin32_266_0_, this_.Payout_Invoicepaidstatus as Payout33_266_0_ from FIN_FinAcc_PaymentMethod this_ where this_.FIN_Financial_Account_ID=$1 and this_.FIN_Paymentmethod_ID=$2 and this_.Isactive=$3 and this_.Isactive=$4
  parameters: $1 = 'DC15B7D80B3A4C6D80D0558A2EC5922D', $2 = '29F862983F3B45739C1507E416123129', $3 = 'Y', $4 = 'Y'

notice the double isactive filter mentioned above
Steps To Reproduce-
TagsNo tags attached.
Attached Filesdiff file icon 33125.diff [^] (1,421 bytes) 2016-06-02 18:52 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0086957)
shuehner (administrator)
2016-06-02 18:52

Note: patch is untested

- Issue History
Date Modified Username Field Change
2016-06-02 18:52 shuehner New Issue
2016-06-02 18:52 shuehner Assigned To => Triage Finance
2016-06-02 18:52 shuehner Modules => Core
2016-06-02 18:52 shuehner Triggers an Emergency Pack => No
2016-06-02 18:52 shuehner File Added: 33125.diff
2016-06-02 18:52 shuehner Note Added: 0086957


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker