Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0048529 | POS2 | POS | public | 2022-02-03 15:20 | 2022-03-07 16:14 |
|
Reporter | timothee_catteeuw | |
Assigned To | migueldejuana | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0048529: JIRA 2670 - buyproductnotificationtemplate.xml does not work when using Printing template option |
Description | Following tests on the ability to configure a template directly on BO trough “POS Print templates”, 3 templates already done for our client does not work when I switch them to this new feature.
This ticket was created for buyproductnotificationtemplate, after switching the buyproductnotificationtemplate to printing template option, buyproductnotificationtemplate does not print anymore.
And the message attached in this ticket appears after paying.
|
Steps To Reproduce | 1) create a new POS Print template (Module = empty, name = buyproductnotificationtemplate, template type = Buy Product with Notification Template, active = yes, printing template = buyproductnotificationtemplate.xml )
2) go to organization and assign the buyproductnotificationtemplate to a store
3) Go to webpos, refresh, logout and login, start a sale and take a product which generates a buyproductnotificationtemplate
4) Pay
→ KO, Prepare Product with buyproductnotificationtemplate is not print anymore (and the sales ticket is also not printed)
Addition information :
When logging out / logging in WebPOS, the sales ticket from the previous test is printed when logging in, but not the notif ticket yet |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0048522 | | closed | migueldejuana | JIRA 2672 - prepareproductnotificationtemplate.xml does not work when using printing template option | related to | defect | 0048521 | | closed | cberner | JIRA 2671 - creditnote.xml does not work when using printing template option |
|
Attached Files | image-20220203-141126.png (69,856) 2022-02-03 15:20 https://issues.openbravo.com/file_download.php?file_id=16578&type=bug

|
|
Issue History |
Date Modified | Username | Field | Change |
2022-02-03 15:20 | timothee_catteeuw | New Issue | |
2022-02-03 15:20 | timothee_catteeuw | Assigned To | => Retail |
2022-02-03 15:20 | timothee_catteeuw | File Added: image-20220203-141126.png | |
2022-02-03 15:20 | timothee_catteeuw | OBNetwork customer | => No |
2022-02-03 15:20 | timothee_catteeuw | Triggers an Emergency Pack | => No |
2022-02-10 18:08 | hgbot | Merge Request Status | => open |
2022-02-10 18:08 | hgbot | Note Added: 0134893 | |
2022-02-10 18:08 | cberner | Relationship added | related to 0048522 |
2022-02-10 18:09 | cberner | Assigned To | Retail => cberner |
2022-02-10 18:09 | cberner | Status | new => scheduled |
2022-02-10 18:09 | cberner | Relationship added | related to 0048521 |
2022-02-11 17:48 | hgbot | Merge Request Status | open => approved |
2022-02-11 17:48 | hgbot | Resolution | open => fixed |
2022-02-11 17:48 | hgbot | Status | scheduled => closed |
2022-02-11 17:48 | hgbot | Note Added: 0134937 | |
2022-02-11 17:48 | hgbot | Note Added: 0134938 | |
2022-03-02 11:24 | timothee_catteeuw | Note Added: 0135381 | |
2022-03-02 11:25 | timothee_catteeuw | Status | closed => new |
2022-03-02 11:29 | timothee_catteeuw | Note Edited: 0135381 | bug_revision_view_page.php?bugnote_id=0135381#r23711 |
2022-03-03 16:38 | guilleaer | Note Edited: 0135381 | bug_revision_view_page.php?bugnote_id=0135381#r23717 |
2022-03-03 16:39 | guilleaer | Status | new => scheduled |
2022-03-03 16:39 | guilleaer | Assigned To | cberner => migueldejuana |
2022-03-04 14:40 | hgbot | Note Added: 0135475 | |
2022-03-04 14:41 | hgbot | Note Added: 0135476 | |
2022-03-07 16:13 | hgbot | Status | scheduled => closed |
2022-03-07 16:13 | hgbot | Fixed in Version | => RR22Q2 |
2022-03-07 16:13 | hgbot | Note Added: 0135509 | |
2022-03-07 16:13 | hgbot | Note Added: 0135510 | |
2022-03-07 16:14 | hgbot | Note Added: 0135511 | |
2022-03-07 16:14 | hgbot | Note Added: 0135512 | |
Notes |
|
(0134893)
|
hgbot
|
2022-02-10 18:08
|
|
|
|
(0134937)
|
hgbot
|
2022-02-11 17:48
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 6589e846901da052eeb9d354a2682f8fc7d2f315
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 11-02-2022 10:42:33
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/6589e846901da052eeb9d354a2682f8fc7d2f315 [^]
Fixes ISSUE-48529: buyProduct and prepareProduct notification template does not work when using MD template
When using a masterdata printing template, saved in masterdata and not a
file, buyProductNotificationTemplate and
prepareProductNotificationTemplate do not work. This is due to them
being wrongly called in the frontend for printing. These are called in
some places with _ or OBPOS2_ prefixes, which shouldn't be done, due to
them being registered in masterdata without this prefixes, this commit
fixes that and should always be printed correctly. This does not affect
the cases where print template is declared with a file, those cases
follow another flow which was not modified.
---
M web-jspack/org.openbravo.pos2/src/authentication/loginInitActions.js
M web-jspack/org.openbravo.pos2/src/model/synchronization-buffer/ProductNotificationEndpoint.js
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/ProductNotification.test.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/GetProductNotificationMessages.js
M web-jspack/org.openbravo.pos2/src/services/pager/PagerHandler.js
M web-jspack/org.openbravo.pos2/src/services/pager/__test__/PagerHandler.test.jsx
---
|
|
|
(0134938)
|
hgbot
|
2022-02-11 17:48
|
|
|
|
|
Reopened after the merge of pickuppoints project
I tested with the last version of pickup point and this xml configured as printing template buyproductnotificationtemplate.xml and again no coupon is printed.
Steps to reproduce :
- create a new POS Print template (Module = empty, name = buyproductnotificationtemplate, template type = Buy Product with Notification Template, active = yes, printing template = (cf. link in Jira)
- Assign this template to a delivery method (with delivery control type = coupon)
- Go to organization and assign the notification type to a product and a pickupoint
- Go to webpos, refresh, logout and login, start a sale and take the product you previously configured which generates a buyproductnotificationtemplate described above
- Pay and select print
→ KO the coupon is not printed, moreover the sales is also not printed (No error displayed in developer tool)
→ Be careful because sometimes it happens for the second transaction after refreshing the till.
No error in dev mode.
→ to go back to the normal printing process, it is mandatory to clean cache on my browser, and assign the default template to the related delivery control type
|
|
|
(0135475)
|
hgbot
|
2022-03-04 14:40
|
|
|
|
(0135476)
|
hgbot
|
2022-03-04 14:41
|
|
|
|
(0135509)
|
hgbot
|
2022-03-07 16:13
|
|
|
|
(0135510)
|
hgbot
|
2022-03-07 16:13
|
|
|
|
(0135511)
|
hgbot
|
2022-03-07 16:14
|
|
|
|
(0135512)
|
hgbot
|
2022-03-07 16:14
|
|
|