Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016380Openbravo ERPA. Platformpublic2011-03-18 11:552011-04-01 00:00
plujan 
mtaal 
immediatecriticalhave not tried
closedfixed 
5
pi 
3.0RC5 
Core
No
0016380: When completing a Sales Order the "complete" action is made in another record
I'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.
Login 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".
No tags attached.
png screenshot-34.png (44,183) 2011-03-18 11:55
https://issues.openbravo.com/file_download.php?file_id=3714&type=bug
png
Issue History
2011-03-18 11:55plujanNew Issue
2011-03-18 11:55plujanAssigned To => alostale
2011-03-18 11:55plujanFile Added: screenshot-34.png
2011-03-18 11:55plujanModules => Core
2011-03-18 12:48alostaleNote Added: 0035039
2011-03-18 13:04alostaleStatusnew => scheduled
2011-03-18 13:04alostaleAssigned Toalostale => mtaal
2011-03-18 13:04alostalefix_in_branch => pi
2011-03-18 13:19hgbotCheckin
2011-03-18 13:19hgbotNote Added: 0035042
2011-03-18 13:19hgbotStatusscheduled => resolved
2011-03-18 13:19hgbotResolutionopen => fixed
2011-03-18 13:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f12d09feabb547158c856e08a4ba803aaf002781 [^]
2011-03-31 13:52iperdomoStatusresolved => closed
2011-04-01 00:00anonymoussf_bug_id0 => 3265628

Notes
(0035039)
alostale   
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   
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
---