Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031633Retail ModulesWeb POSpublic2015-12-01 18:452015-12-09 11:50
adrianromero 
adrianromero 
normalmajorhave not tried
closedfixed 
5
 
RR16Q1 
guilleaer
No
0031633: Date fields in the customer table are not properly stored in the backend
Actually date fields are not stored only when trying to save a NULL value, other date values are properly stored.
Create a new field in the Business partner table with Date type. For example Birthdate and configure it to be able to be edited in the POS. Then follow these steps:

1.- Edit a customer in POS
2.- Set a valid birthday value
3.- Save and check the birthday value is properly stored in the backend
4.- Edit again the customer in POS
5.- clear de birthday value
6.- Save and check that the backend does not store null, it does not clear the birthday field. This is wrong. The field must be cleared.
SER-QA
Issue History
2015-12-01 18:45adrianromeroNew Issue
2015-12-01 18:45adrianromeroAssigned To => Retail
2015-12-01 18:45adrianromeroTriggers an Emergency Pack => No
2015-12-01 18:46adrianromeroTag Attached: SER-QA
2015-12-04 13:22hgbotCheckin
2015-12-04 13:22hgbotNote Added: 0082569
2015-12-04 13:22hgbotStatusnew => resolved
2015-12-04 13:22hgbotResolutionopen => fixed
2015-12-04 13:22hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3e37e765ed476cfb4a0565d1e29a5251fad8ce9a [^]
2015-12-04 13:23adrianromeroReview Assigned To => marvintm
2015-12-07 18:16marvintmAssigned ToRetail => adrianromero
2015-12-09 11:50guilleaerReview Assigned Tomarvintm => guilleaer
2015-12-09 11:50guilleaerStatusresolved => closed
2015-12-09 11:50guilleaerFixed in Version => RR16Q1

Notes
(0082569)
hgbot   
2015-12-04 13:22   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 3e37e765ed476cfb4a0565d1e29a5251fad8ce9a
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Fri Dec 04 10:26:31 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3e37e765ed476cfb4a0565d1e29a5251fad8ce9a [^]

Fixes issue 0031633: Date fields in the customer table are not properly stored in the backend
* for Dates and DateTimes, if the value to store is null then save null, and do not raise an error

---
M src/org/openbravo/mobile/core/process/JSONPropertyToEntity.java
---