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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0046270
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2021-04-15 09:382021-04-15 18:31
ReportermarvintmView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0046270: Logic that controls the Lottery panel when user navigates to Payment tab is not fully correct

DescriptionCurrently there are two problems with the logic that controls whether the Lottery panel should be shown when the user goes to Payment tab.

First one is that the RTServer specific logic is not needed anymore, and should be removed. So, in utils.js these lines should be removed:


  // Override function from lottery code
  OB.LOTCODE = OB.LOTCODE || {};
  OB.LOTCODE.Utils = OB.LOTCODE.Utils || {};
  OB.LOTCODE.Utils.showLotteryCodePopup = showLotteryCodePopup;

and isRTServerVerifiedReturn should be restored to its original behaviour:

  const isRTServerVerifiedReturn = receipt => {
    return (
            !hasBlindReferenceZNumber(receipt) &&
              !hasBlindReferenceDocumentNumber(receipt)

    );
  };


Apart from this, the logic in SCO that controls the panel is also not correct. In file obscolc-prepaymenthook.js we are doing this:

    if (
      OB.LOTCODE.Utils.showLotteryCodePopup(args.context.receipt) ||
      !OB.MobileApp.model.hasPermission(
        'OBLOTC_requestLotteryCodeInformation',
        true
      )
    ) {
      finalHookCallback();
    } else {
      OB.OBSCOLC.Utils.showGetLotteryCodePanel(args, finalHookCallback);
    }

and in fact it should be the opposite, if OB.LOTCODE.Utils.showLotteryCodePopup returns true, then the panel should be shown.
Steps To ReproduceEnable lottery implementation.
Go to self checkout. Do a ticket. Check that the lottery panel is not shown.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0046226 closedrqueralta The Fiscal Reference Document popup info is not infomed in the printed ticket 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-04-15 09:38 marvintm New Issue
2021-04-15 09:38 marvintm Assigned To => Retail
2021-04-15 09:38 marvintm Resolution time => 1620165600
2021-04-15 09:38 marvintm Triggers an Emergency Pack => No
2021-04-15 09:48 jorge-garcia Issue Monitored: jorge-garcia
2021-04-15 18:31 marvintm Review Assigned To => marvintm
2021-04-15 18:31 marvintm Relationship added duplicate of 0046226
2021-04-15 18:31 marvintm Status new => closed
2021-04-15 18:31 marvintm Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker