Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038987Retail ModulesWeb POSpublic2018-07-18 17:042018-07-18 17:14
jonibc 
Retail 
highmajoralways
closedduplicate 
5
 
 
No
0038987: Datepicker component is not setting the correct date if only day is modified
If in a datepicker with a date already selected, and only the day of the date is modified, this change is not stored correctly.

This happens because function updateDay is not setting the new value of the date.


This can be seen in the following extract of code of file .../org.openbravo.mobile.core/web/org.openbravo.mobile.core/build/lib.js.

updateDay: function(e, t) {
return true;
},
updateMonth: function(e, t) {
var n = this.calcDate(this.value.getFullYear(), t.selected.value, this.$.dayPicker.selected.value);
return this.doSelect({
name: this.name,
value: n
}), this.setValue(n), !0;
},
1- Log into backend: Enable preference "WEB POS Show BusinessPartner Birth Information".
2- Log into WebPOS.
3- Modify "VBS customer", set as birth date 1/1/2010. Save the customer.
4- Modify the customer again, in birth date only modify the day to 30. Save the changes.
5- If you try to modify the customer again, you will see the birth date did not changed.
No tags attached.
duplicate of defect 0038978 closed ranjith_qualiantech_com Problems with Date Picker: can't save change of day in Birthday 
Issue History
2018-07-18 17:04jonibcNew Issue
2018-07-18 17:04jonibcAssigned To => Retail
2018-07-18 17:04jonibcResolution time => 1533074400
2018-07-18 17:04jonibcTriggers an Emergency Pack => No
2018-07-18 17:14jonibcRelationship addedduplicate of 0038978
2018-07-18 17:14jonibcStatusnew => closed
2018-07-18 17:14jonibcResolutionopen => duplicate

There are no notes attached to this issue.