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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0057517
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2024-12-20 10:412025-01-16 11:59
ReporterkchoperenaView Statuspublic 
Assigned Toradhakrishnan 
PriorityhighResolutionunable to reproduceFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Status
Review Assigned To
OBNetwork customerOBPS
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0057517: JS error when clicking on DONE with prepayments enabled in a fully paid order

DescriptionHaving prepayments enabled, if we reopen the order, navigate to the payment section and click on DONE, a JS error appears

The error happens in the CashupUtils.js line 290:

prepaymentsAmount =
          OB.DEC.sub(ticket.obposPrepaymentamt, deliveredGrossAmount) <= 0
            ? ticket.obposPrepaymentamt
            : OB.DEC.sub(ticket.obposPrepaymentamt, deliveredGrossAmount);
Steps To ReproduceVIDEO: https://drive.google.com/file/d/1dLcqXZN6cBNE2LceT7rtlzZJQL8NINsM/view?usp=sharing [^]
PRE-REQUIREMENTS:
- Have enabled prepayments

STEPS:
1.- Log into the POS2
2.- Add a pick up in store product line to the ticket
3.- Pay completely the ticket and complete it
4.- Reopen the ticket
5.- Go to payment section and click in DONE


RESULT:
An error will happen and the delivery will not be performed
TagsNo tags attached.
Attached Filespng file icon Screenshot from 2024-12-23 11-18-54.png [^] (187,883 bytes) 2024-12-23 11:30


png file icon Screenshot from 2024-12-23 11-18-59.png [^] (203,579 bytes) 2024-12-23 11:31


png file icon Screenshot from 2024-12-23 11-30-25.png [^] (544,659 bytes) 2024-12-23 11:31

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0173610)
mtaal (viewer)
2024-12-23 10:23

Some questions:
- Can you provide the error message and also the error from the log?
- In which environment does this happen?
- Can it be reproduced in live builds?
(0173622)
kchoperena (viewer)
2024-12-23 11:44

I noticed that the issue is not related to the delivery functionality. It is a general bug in the POS when you reopen a ticket fully paid and click again in DONE button to synchronize it

VIDEO with easier steps to reproduce: https://drive.google.com/file/d/1dLcqXZN6cBNE2LceT7rtlzZJQL8NINsM/view?usp=sharing [^]

Probably it makes sense to involve someone from the POS team or directly assign them the issue
(0173732)
aferraz (viewer)
2024-12-30 13:54

Jira: https://openbravo.atlassian.net/browse/RM-20130 [^]
(0174223)
kchoperena (viewer)
2025-01-16 11:59

Not reproduced anymore

- Issue History
Date Modified Username Field Change
2024-12-20 10:41 kchoperena New Issue
2024-12-20 10:41 kchoperena Assigned To => Retail
2024-12-20 10:41 kchoperena OBNetwork customer => OBPS
2024-12-20 10:41 kchoperena Triggers an Emergency Pack => No
2024-12-20 12:09 guillermogil Assigned To Retail => Triage Omni WMS
2024-12-20 13:17 kchoperena Steps to Reproduce Updated View Revisions
2024-12-23 10:23 mtaal Note Added: 0173610
2024-12-23 10:23 mtaal Status new => feedback
2024-12-23 11:30 kchoperena File Added: Screenshot from 2024-12-23 11-18-54.png
2024-12-23 11:31 kchoperena File Added: Screenshot from 2024-12-23 11-18-59.png
2024-12-23 11:31 kchoperena File Added: Screenshot from 2024-12-23 11-30-25.png
2024-12-23 11:44 kchoperena Note Added: 0173622
2024-12-23 12:32 kchoperena Assigned To Triage Omni WMS => Retail
2024-12-23 12:32 kchoperena Status feedback => new
2024-12-23 12:33 kchoperena Steps to Reproduce Updated View Revisions
2024-12-23 16:14 guillermogil Assigned To Retail => guillermogil
2024-12-23 16:14 guillermogil Assigned To guillermogil => Triage Omni OMS
2024-12-23 16:17 kchoperena Steps to Reproduce Updated View Revisions
2024-12-23 16:44 kchoperena Summary The functionality that delivers an order that has lines prepared ready to deliver and is paid completely is broken => JS error when clicking on DONE with prepayments enabled in a fully paid order
2024-12-23 16:44 kchoperena Description Updated View Revisions
2024-12-23 16:44 kchoperena Steps to Reproduce Updated View Revisions
2024-12-23 16:47 kchoperena Description Updated View Revisions
2024-12-30 13:54 aferraz Assigned To Triage Omni OMS => radhakrishnan
2024-12-30 13:54 aferraz Note Added: 0173732
2025-01-16 11:59 kchoperena Note Added: 0174223
2025-01-16 11:59 kchoperena Status new => closed
2025-01-16 11:59 kchoperena Resolution open => unable to reproduce


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker