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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0027440
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementminorhave not tried2014-08-23 17:032015-09-11 06:33
ReportershuehnerView Statuspublic 
Assigned ToAtulOpenbravo 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision16ed86fcdf7f
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Todmiguelez
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0027440: pl-function c_order_status is broken: uuid bug

DescriptionThis function is broken and fails if it is called and should return '2' for a process order with a line which has no associated shipment of invoice or payment.

Technically error is the v_CountNotPaid variable being varchar2 where it should be NUMBER.

Technically this is a regression as that variable was changed accidently when introducing uuid's in 2.50 (commit: 8a0fe0193bef).

Steps To ReproduceCreate a new sales order with one line and book it.
Look up c_order_id of that order
run select c_order_status('this-uuid');

See following error:
ERROR: operator does not exist: character varying <> integer
LINE 1: ...ed <> 0 AND v_CountNotInvoiced <> 0 AND v_CountNotPaid <> 0)
                                                                  ^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
QUERY: SELECT (v_CountNotDelivered <> 0 AND v_CountNotInvoiced <> 0 AND v_CountNotPaid <> 0)
CONTEXT: PL/pgSQL function c_order_status(character varying) line 80 at IF

Proposed SolutionChange variable back to NUMBER
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0027441 closedshuehner Remove 2 unused/obsolete pl-functions of old-flow/pre-aprm time: c_order_status & c_debt_payment_paid 

-  Notes
(0069652)
shuehner (administrator)
2014-08-23 17:06

Note see related 27441 issue talking about deleting the pl-function completely.
(0080289)
hgbot (developer)
2015-09-09 18:09

Repository: erp/devel/pi
Changeset: 16ed86fcdf7f0c17d54790cfeeda0546617d7001
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Wed Jul 15 23:48:05 2015 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/16ed86fcdf7f0c17d54790cfeeda0546617d7001 [^]

Fixes Issue 27440:pl-function c_order_status is broken: uuid bug

Variable v_CountNotPaid wrongly set as VARCHAR during merge r2.5x
into trunk

---
M src-db/database/model/functions/C_ORDER_STATUS.xml
---
(0080290)
dmiguelez (developer)
2015-09-09 18:10

Code Review + Testing Ok
(0080322)
hudsonbot (developer)
2015-09-11 06:33

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/2828f6cbe752 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2014-08-23 17:03 shuehner New Issue
2014-08-23 17:03 shuehner Assigned To => dmiguelez
2014-08-23 17:03 shuehner Modules => Core
2014-08-23 17:03 shuehner Triggers an Emergency Pack => No
2014-08-23 17:06 shuehner Relationship added related to 0027441
2014-08-23 17:06 shuehner Note Added: 0069652
2014-09-03 13:55 eduardo_Argal Assigned To dmiguelez => eduardo_Argal
2015-07-15 19:57 AtulOpenbravo Assigned To eduardo_Argal => AtulOpenbravo
2015-07-15 19:57 AtulOpenbravo Status new => scheduled
2015-09-09 18:09 hgbot Checkin
2015-09-09 18:09 hgbot Note Added: 0080289
2015-09-09 18:09 hgbot Status scheduled => resolved
2015-09-09 18:09 hgbot Resolution open => fixed
2015-09-09 18:09 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/16ed86fcdf7f0c17d54790cfeeda0546617d7001 [^]
2015-09-09 18:10 dmiguelez Review Assigned To => dmiguelez
2015-09-09 18:10 dmiguelez Note Added: 0080290
2015-09-09 18:10 dmiguelez Status resolved => closed
2015-09-11 06:33 hudsonbot Checkin
2015-09-11 06:33 hudsonbot Note Added: 0080322


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker