Openbravo Issue Tracking System - POS2
View Issue Details
0048522POS2POSpublic2022-02-03 12:502022-03-07 16:15
timothee_catteeuw 
migueldejuana 
normalmajoralways
closedfixed 
5
 
 
guilleaer
No
0048522: JIRA 2672 - prepareproductnotificationtemplate.xml does not work when using printing template option
Following tests on the ability to configure a template directly on BO trough “POS Print templates”, 3 templates does not work when I switch them to this new feature.

This ticket was created for prepareproductnotificationtemplate, after switching the prepareproductnotificationtemplate to printing template option, prepareproductnotificationtemplate is not print anymore.

And an error message appears

POS2.js:3630 Error displaying message: RequestError: Request to null? responded with error; line: Hh.printProductNotification (https://XXXXXX.cloud.openbravo.com/openbravo/web/pos/static/js/2.ba1a4c18.chunk.js:1:727528 [^]) (*)
(anonyme) @ POS2.js:3630
i @ POS2.js:4220
(anonyme) @ POS2.js:4249
printProductNotification @ ProductNotificationEndpoint.js:97
await in printProductNotification (asynchrone)
(anonyme) @ ProductNotificationEndpoint.js:47
synchronizeMessage @ POS2.js:12974
synchronizeMessage @ POS2.js:12859
synchronizeMessages @ POS2.js:12848
synchronize @ POS2.js:12786
await in synchronize (asynchrone)
(anonyme) @ POS2.js:12765
internalFlush @ POS2.js:12764
onMessagesChanged @ POS2.js:12751
await in onMessagesChanged (asynchrone)
(anonyme) @ POS2.js:9440
handleChange @ POS2.js:9438
v @ redux.js:221
dispatch @ POS2.js:8603
(anonyme) @ POS2.js:9111
(anonyme) @ POS2.js:9248
await in (anonyme) (asynchrone)
action @ StateUserAction.js:61
launch @ UserAction.js:165
await in launch (asynchrone)
(anonyme) @ getUserAction.js:35
onConfirm @ PaymentKeypad.jsx:67
onLeftClick @ BaseKeypad.jsx:192
onClick @ BaseButton.jsx:86
He @ react-dom.production.min.js:52
Ke @ react-dom.production.min.js:52
(anonyme) @ react-dom.production.min.js:53
Sr @ react-dom.production.min.js:100
_r @ react-dom.production.min.js:101
(anonyme) @ react-dom.production.min.js:113
ze @ react-dom.production.min.js:292
(anonyme) @ react-dom.production.min.js:50
Mr @ react-dom.production.min.js:105
Zt @ react-dom.production.min.js:75
Gt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Hi @ react-dom.production.min.js:122
Ae @ react-dom.production.min.js:292
Xt @ react-dom.production.min.js:73
1) create a new POS Print template (Module = empty, name = prepareproductnotificationtemplate , template type = Prepare Product with NotificationTemplate, active = yes, printing template = prepareproductnotificationtemplate.xml )

prepareproductnotificationtemplate.xml is avaibable in related Jira

2) go to organization and assign the prepareproductnotificationtemplate document to a store

3) Go to webpos, refresh, logout and login, start a sale and take a product which generates a Prepare Product with NotificationTemplate

4) Pay

→ KO, Prepare Product with NotificationTemplate does not print anymore
No tags attached.
related to defect 0048529 closed migueldejuana JIRA 2670 - buyproductnotificationtemplate.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 
Issue History
2022-02-03 12:50timothee_catteeuwNew Issue
2022-02-03 12:50timothee_catteeuwAssigned To => Retail
2022-02-03 12:50timothee_catteeuwTriggers an Emergency Pack => No
2022-02-03 15:22timothee_catteeuwSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23628#r23628
2022-02-10 18:08cbernerNote Added: 0134894
2022-02-10 18:08cbernerAssigned ToRetail => cberner
2022-02-10 18:08cbernerStatusnew => scheduled
2022-02-10 18:08cbernerRelationship addedrelated to 0048529
2022-02-10 18:09cbernerRelationship addedrelated to 0048521
2022-02-11 17:50guilleaerStatusscheduled => resolved
2022-02-11 17:50guilleaerResolutionopen => fixed
2022-02-11 17:50guilleaerReview Assigned To => guilleaer
2022-02-11 17:50guilleaerStatusresolved => closed
2022-03-02 11:05timothee_catteeuwNote Added: 0135379
2022-03-02 11:25timothee_catteeuwStatusclosed => new
2022-03-02 11:27timothee_catteeuwNote Edited: 0135379bug_revision_view_page.php?bugnote_id=0135379#r23709
2022-03-03 10:29timothee_catteeuwDescription Updatedbug_revision_view_page.php?rev_id=23715#r23715
2022-03-03 16:38guilleaerNote Edited: 0135379bug_revision_view_page.php?bugnote_id=0135379#r23716
2022-03-03 16:38guilleaerStatusnew => scheduled
2022-03-03 16:38guilleaerAssigned Tocberner => migueldejuana
2022-03-07 16:14migueldejuanaNote Added: 0135513
2022-03-07 16:14migueldejuanaStatusscheduled => resolved
2022-03-07 16:15migueldejuanaStatusresolved => closed

Notes
(0134894)
cberner   
2022-02-10 18:08   
MR Created for related issue 48529 will also fix this one: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/807 [^]
(0135379)
timothee_catteeuw   
2022-03-02 11:05   
(edited on: 2022-03-03 16:38)
Reopened after the merge of pickuppoints project

I tested with the last version of pickup point and this xml configured as printing template prepareproductnotificationtemplate.xml and again no coupon are printed.

Steps to reproduce :

create a new POS Print template (Module = empty, name = prepareproductnotificationtemplate , template type = Prepare Product with NotificationTemplate, active = yes, printing template = prepareproductnotificationtemplate.xml

Link of prepareproductnotificationtemplate.xml was put in Jira

Assign this template to a notification point type

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 Prepare Product with NotificationTemplate described above

Pay

→ KO the coupon is not printed, moreover the sales is also not printed

No error displayed in developer tool

→ 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 notification point type

(0135513)
migueldejuana   
2022-03-07 16:14   
Fixed in 48529