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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016380
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformcriticalhave not tried2011-03-18 11:552011-04-01 00:00
ReporterplujanView Statuspublic 
Assigned Tomtaal 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revisionf12d09feabb5
ProjectionnoneETAnoneTarget Version3.0RC5
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016380: When completing a Sales Order the "complete" action is made in another record

DescriptionI've created several Sales Order. When trying to complete one, the action is made for another Order. If I try to repeat the action in the same one (the selected order that is still in Draft) a message is displayed "Document processed/posted".

See steps.
Steps To ReproduceLogin with:
"User name": QAAdmin
"Password": QAAdmin

Go to Sales management || Transactions || Sales order

Create three sales order for:
"Transaction document": Standard Order
"Date Ordered": One month before the current month
"Business partner": Customer A
"Product": Final goods A
"Ordered Quantity": 75.25

Create three sales order for:
"Transaction document": Standard Order
"Date Ordered": One month before the current month
"Business partner": Customer B
"Product": Final goods B
"Ordered Quantity": 75.25

In grid view, select any order (but the last created) and click Complete button. The action is performed but in a different record other than selected.
Repeat the Complete action on the same record (that is still in Draft state) and you will receive a message "Document processed/posted".
TagsNo tags attached.
Attached Filespng file icon screenshot-34.png [^] (44,183 bytes) 2011-03-18 11:55

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0035039)
alostale (manager)
2011-03-18 12:48

Problem is in FIC when setting session info:


java.lang.Error: java.text.ParseException: Unparseable date: "18/02/2011"
    at org.openbravo.service.json.JsonToDataConverter.convertJsonToPropertyValue(JsonToDataConverter.java:166)
    at org.openbravo.client.application.window.FormInitializationComponent.setValuesInRequest(FormInitializationComponent.java:519)
    at org.openbravo.client.application.window.FormInitializationComponent.execute(FormInitializationComponent.java:175)
...

This is how date format is configured in Openbravo.properties:
dateFormat.js=%d/%m/%Y
dateFormat.sql=DD/MM/YYYY
dateFormat.java=dd/MM/yyyy
dateTimeFormat.java=dd/MM/yyyy HH:mm:ss
dateTimeFormat.sql=DD/MM/YYYY HH24:MI:SS

And this is the SimpleDateFormat used for parsing it (copied from JsonUtils.java):
  public static SimpleDateFormat createDateFormat() {
    final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
    dateFormat.setLenient(true);
    return dateFormat;
  }
(0035042)
hgbot (developer)
2011-03-18 13:19

Repository: erp/devel/pi
Changeset: f12d09feabb547158c856e08a4ba803aaf002781
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Mar 18 13:18:55 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/f12d09feabb547158c856e08a4ba803aaf002781 [^]

Fixes issue 16380: When completing a Sales Order the complete action is made in another record

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/DateUIDefinition.java
---

- Issue History
Date Modified Username Field Change
2011-03-18 11:55 plujan New Issue
2011-03-18 11:55 plujan Assigned To => alostale
2011-03-18 11:55 plujan File Added: screenshot-34.png
2011-03-18 11:55 plujan Modules => Core
2011-03-18 12:48 alostale Note Added: 0035039
2011-03-18 13:04 alostale Status new => scheduled
2011-03-18 13:04 alostale Assigned To alostale => mtaal
2011-03-18 13:04 alostale fix_in_branch => pi
2011-03-18 13:19 hgbot Checkin
2011-03-18 13:19 hgbot Note Added: 0035042
2011-03-18 13:19 hgbot Status scheduled => resolved
2011-03-18 13:19 hgbot Resolution open => fixed
2011-03-18 13:19 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f12d09feabb547158c856e08a4ba803aaf002781 [^]
2011-03-31 13:52 iperdomo Status resolved => closed
2011-04-01 00:00 anonymous sf_bug_id 0 => 3265628


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker