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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0034579
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2016-11-18 12:582016-11-23 11:56
ReporterairaceburuView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR17Q1
StatusclosedFix in branchFixed in SCM revision1a7326589f3a
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0034579: Forcedtemplate parameter does not work when set before PrePrint hook

DescriptionThe forcedTemplate parameter does not work when set before PrePrint hook as it is retrieved from args inside the success callback of the hook and is not being send to it.
Steps To ReproduceDo:

receipt.trigger('print', receipt, {
      forcedtemplate: '1'
    });

set a breakpoint in "if (args.forcedtemplate)"

Check that it does not stop
Proposed SolutionSend the paramter to the PrePrint hook, or send all printargs to the PrePrint hook:

OB.UTIL.HookManager.executeHooks('OBPRINT_PrePrint', {
      forcePrint: printargs.forcePrint,
      offline: printargs.offline,
      order: order ? order : me.receipt,
      template: template,
      callback: printargs.callback,
      forcedtemplate: printargs.forcedtemplate
    }

or

OB.UTIL.HookManager.executeHooks('OBPRINT_PrePrint', {
      forcePrint: printargs.forcePrint,
      offline: printargs.offline,
      order: order ? order : me.receipt,
      template: template,
      callback: printargs.callback,
      printargs: printargs
    }
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0091751)
hgbot (developer)
2016-11-22 17:20

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1a7326589f3a4f9d03b6d6de28e303131996dda1
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Nov 22 21:47:50 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1a7326589f3a4f9d03b6d6de28e303131996dda1 [^]

Fixes issue 34579 : Add Missing attributes to OBPRINT_PrePrint hook

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
---

- Issue History
Date Modified Username Field Change
2016-11-18 12:58 airaceburu New Issue
2016-11-18 12:58 airaceburu Assigned To => Retail
2016-11-18 12:58 airaceburu Resolution time => 1480633200
2016-11-18 12:58 airaceburu Triggers an Emergency Pack => No
2016-11-18 12:59 airaceburu Summary Forcedtemplate parameter does not worked when set before PrePrint hook => Forcedtemplate parameter does not work when set before PrePrint hook
2016-11-21 16:06 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2016-11-21 16:06 ranjith_qualiantech_com Status new => scheduled
2016-11-22 17:20 hgbot Checkin
2016-11-22 17:20 hgbot Note Added: 0091751
2016-11-22 17:20 hgbot Status scheduled => resolved
2016-11-22 17:20 hgbot Resolution open => fixed
2016-11-22 17:20 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1a7326589f3a4f9d03b6d6de28e303131996dda1 [^]
2016-11-23 11:56 marvintm Review Assigned To => marvintm
2016-11-23 11:56 marvintm Status resolved => closed
2016-11-23 11:56 marvintm Fixed in Version => RR17Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker