Openbravo Issue Tracking System - POS2
View Issue Details
0048521POS2POSpublic2022-02-03 12:372022-02-11 17:48
timothee_catteeuw 
cberner 
normalmajoralways
closedfixed 
5
 
 
No
0048521: JIRA 2671 - creditnote.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 initially provided to my client does not work when I switch them to this new feature.

This ticket was created for credit note, after switching the credit note to printing template option, credit notes does not print anymore and a message appears on WebPOS (cf. attached file as well)

Uncaught (in promise) RequestError: Request to null? responded with error
at POS2.js:14688:17
(anonyme) @ POS2.js:14895
(anonyme) @ POS2.js:14688
await in (anonyme) (asynchrone)
(anonyme) @ SendCreditNoteToPrinter.js:47
(anonyme) @ ob-init.js:64
synchronizeMessage @ POS2.js:12974
synchronizeMessage @ POS2.js:12859
synchronizeMessages @ POS2.js:12848
await in synchronizeMessages (asynchrone)
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)
fb @ AddPayment.js:57
executeHooks @ UserAction.js:491
executePostHooks @ UserAction.js:477
launch @ UserAction.js:168
await in launch (asynchrone)
(anonyme) @ getUserAction.js:35
S @ processPayment.js:142
Ha @ processPayment.js:207
await in Ha (asynchrone)
h @ PaymentButton.jsx:90
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 = credit note, template type = credit note template, active = yes, printing template = creditnote.xml )

Creditnote.xml file is linked to related jira

2) go to organization and assign the credit note to a store

3) Go to webpos, refresh, logout and login and do a sale which will generate a credit note

→ KO, credit notes does not print anymore and a message appears on WebPOS
No tags attached.
related to defect 0048522 closed migueldejuana JIRA 2672 - prepareproductnotificationtemplate.xml does not work when using printing template option 
related to defect 0048529 closed migueldejuana JIRA 2670 - buyproductnotificationtemplate.xml does not work when using Printing template option 
png image-20220203-113041.png (29,203) 2022-02-03 12:37
https://issues.openbravo.com/file_download.php?file_id=16574&type=bug
png
Issue History
2022-02-03 12:37timothee_catteeuwNew Issue
2022-02-03 12:37timothee_catteeuwAssigned To => Retail
2022-02-03 12:37timothee_catteeuwFile Added: image-20220203-113041.png
2022-02-03 12:37timothee_catteeuwTriggers an Emergency Pack => No
2022-02-04 16:45sntgrealeAssigned ToRetail => sntgreale
2022-02-04 21:58sntgrealeStatusnew => scheduled
2022-02-09 17:49sntgrealeAssigned Tosntgreale => Retail
2022-02-10 13:24hgbotNote Added: 0134874
2022-02-10 18:09cbernerRelationship addedrelated to 0048522
2022-02-10 18:09cbernerRelationship addedrelated to 0048529
2022-02-10 18:09cbernerAssigned ToRetail => cberner
2022-02-11 17:48hgbotResolutionopen => fixed
2022-02-11 17:48hgbotStatusscheduled => closed
2022-02-11 17:48hgbotNote Added: 0134935
2022-02-11 17:48hgbotNote Added: 0134936

Notes
(0134874)
hgbot   
2022-02-10 13:24   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/108 [^]
(0134935)
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.retail.giftcards [^]
Changeset: 5d60f5dbd0456c564b4f018403b8aee4b19cbaf3
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 10-02-2022 13:21:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/5d60f5dbd0456c564b4f018403b8aee4b19cbaf3 [^]

Fixes ISSUE-48521: creditnote.xml does not work when using printing template option

Credit note is failing when printing using a template saved in terminal
masterdata. It seems the name used to reference the
printCreditNoteTemplate was wrong, previously it was
GCNV_printCreditNoteTemplate, but the other name is the one that's saved
in masterdata from backend, so I switched it to the other one.

---
M web-jspack/org.openbravo.retail.giftcards/src/model/giftcard/SendCreditNoteToPrinter.js
M web-jspack/org.openbravo.retail.giftcards/src/ob-init.js
---
(0134936)
hgbot   
2022-02-11 17:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/108 [^]