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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0055893
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2024-07-02 23:052024-08-09 10:38
ReportersdossantosView Statuspublic 
Assigned ToSABARINATH P 
PriorityurgentResolutionfixedFixed in Version24Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0055893: Error with Print Product Label

DescriptionWhen we have time difference (UTF) we have errors when calculating the print product label.
We always subtract as the service that gets the price product label is:

  /**
   * This method will return the correct date which should be stored in the database taking into
   * account the client and the server date
   */
  public static Date calculateClientDatetime(String orgClientDate, Long dateOffset) {
    Date serverDate = (Date) JsonToDataConverter.convertJsonToPropertyValue(PropertyByType.DATETIME,
        orgClientDate.lastIndexOf(".") != -1
            ? orgClientDate.subSequence(0, orgClientDate.lastIndexOf("."))
            : orgClientDate);
    // date is the date in the server timezone, we need to convert it to the date in the
    // original time zone
    Date dateUTC = convertToUTC(serverDate);
    Date clientDate = new Date();
    clientDate.setTime(dateUTC.getTime() - dateOffset * 60 * 1000);
    return clientDate;
  }
Steps To ReproduceUse the Argentina time for example (configure on your computer)
1- Add a product price exception in backoffice for a product. For example with start date with yesterday's date - pio 10
2- Get the product print label of the product you configured in step 1, we see the price 10
3- now let's change the exception configured in step 1, with today's date in the start date,
4 - In product pront label, we see another price and not 10.

Attached video
TagsNo tags attached.
Attached Files? file icon Videograbación 2024-07-02 17:49:50.mp4 [^] (4,431,620 bytes) 2024-07-02 23:05

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 005596624Q2.1 closedSABARINATH P Error with Print Product Label 
depends on backport 005599624Q3.1 closedSABARINATH P Error with Print Product Label 

-  Notes
(0166700)
hgbot (developer)
2024-07-05 08:45

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/merge_requests/66 [^]
(0166815)
hgbot (developer)
2024-07-09 06:37

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing [^]
Changeset: 9ed34ac474151c3887469f2bb53e144f2d87178f
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 05-07-2024 12:08:51
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/commit/9ed34ac474151c3887469f2bb53e144f2d87178f [^]

Fixed ISSUE-55893: Product price exception valid date handled for any time zone.

---
M web-jspack/org.openbravo.pos2.product.label.printing/src/components/PrintProductLabel/PrintProductLabelSelectProdStep/PrintProductLabelProductListGrid/PrintProductLabelProductListGrid.jsx
---
(0166816)
hgbot (developer)
2024-07-09 06:37

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.product.label.printing/-/merge_requests/66 [^]

- Issue History
Date Modified Username Field Change
2024-07-02 23:05 sdossantos New Issue
2024-07-02 23:05 sdossantos Assigned To => Retail
2024-07-02 23:05 sdossantos File Added: Videograbación 2024-07-02 17:49:50.mp4
2024-07-02 23:05 sdossantos Triggers an Emergency Pack => No
2024-07-03 14:45 guilleaer Status new => acknowledged
2024-07-04 08:24 SABARINATH P Assigned To Retail => SABARINATH P
2024-07-04 08:24 SABARINATH P Status acknowledged => scheduled
2024-07-05 08:45 hgbot Note Added: 0166700
2024-07-09 06:36 guillermogil Severity critical => major
2024-07-09 06:37 hgbot Resolution open => fixed
2024-07-09 06:37 hgbot Status scheduled => closed
2024-07-09 06:37 hgbot Note Added: 0166815
2024-07-09 06:37 hgbot Note Added: 0166816
2024-07-10 14:42 SABARINATH P Status closed => new
2024-07-10 14:42 SABARINATH P Resolution fixed => open
2024-07-10 14:42 SABARINATH P Status new => scheduled
2024-07-10 14:44 SABARINATH P Status scheduled => resolved
2024-07-10 14:44 SABARINATH P Resolution open => fixed
2024-07-10 14:44 SABARINATH P Status resolved => closed
2024-07-12 10:48 SABARINATH P Status closed => new
2024-07-12 10:48 SABARINATH P Resolution fixed => open
2024-07-12 10:48 SABARINATH P Status new => scheduled
2024-07-12 10:48 SABARINATH P Status scheduled => acknowledged
2024-07-12 10:49 SABARINATH P Status acknowledged => scheduled
2024-08-09 10:38 marvintm Status scheduled => resolved
2024-08-09 10:38 marvintm Fixed in Version => 24Q4
2024-08-09 10:38 marvintm Resolution open => fixed
2024-08-09 10:38 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker