Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045785Retail ModulesWeb POSpublic2021-01-26 11:222023-05-26 10:30
caristu 
Retail 
highminorhave not tried
closedfixed 
5
 
RR22Q4 
No
0045785: Move hardware manager communication API to mobile.core
Currently all the logic to communicate with the hardware manager is centralized in the posterminal module. It should be moved to the mobile.core module so other applications (awo) can also perform hw manager operations like printing.

This includes the following tasks:

1- move code. Note that those parts of the code referencing to ticket/orders must be kept in posterminal. (Example: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/external-device/ExternalDeviceController.js#L262 [^])
2- create/move template backend and HWM definitions
In description
No tags attached.
related to defect 0052515 closed adrianromero Retail Modules WebUSB and WebBluetooth printer receipts are not printed properly 
depends on feature request 0045634 closed Retail Retail Modules Reimplement printing infrastructure 
depends on defect 0050058 closed caristu Openbravo ERP Warnings appear in the console when exporting a table to a module through naming exceptions 
related to defect 0050104 new Retail POS2 Move print ticket related utilities into pos2 
related to defect 0050152 closed Retail Retail Modules API changes due to the movement of the hardware manager communication API to mobile.core 
related to feature request 0050614 new Triage Omni WMS Modules Ability to configure the hardware manager, printers and templates to be used when printing documents 
related to feature request 0050615 new Triage Platform Base POS2 Support defining printing templates as masterdata in all mobile applications 
blocks defect 0050162 closed caristu Modules Support printing Distribution Order Issues from AWO 
Issue History
2021-01-26 11:22caristuNew Issue
2021-01-26 11:22caristuAssigned To => Retail
2021-01-26 11:22caristuTriggers an Emergency Pack => No
2021-01-26 11:22caristuIssue generated from0045784
2021-01-26 11:22caristuDescription Updatedbug_revision_view_page.php?rev_id=22068#r22068
2021-01-26 11:23caristuDescription Updatedbug_revision_view_page.php?rev_id=22069#r22069
2021-01-26 12:13caristuRelationship addedrelated to 0045634
2021-01-26 12:14caristuRelationship replaceddepends on 0045634
2021-01-29 14:30caristuDescription Updatedbug_revision_view_page.php?rev_id=22090#r22090
2021-02-02 12:33caristuDescription Updatedbug_revision_view_page.php?rev_id=22097#r22097
2022-08-25 10:04caristuRelationship addeddepends on 0050058
2022-08-25 10:30hgbotNote Added: 0140386
2022-08-25 10:32hgbotNote Added: 0140387
2022-08-25 11:58hgbotNote Added: 0140392
2022-08-25 13:05hgbotNote Added: 0140393
2022-08-25 13:12hgbotNote Added: 0140394
2022-08-25 13:16hgbotNote Added: 0140395
2022-08-26 14:02hgbotNote Added: 0140434
2022-08-26 15:32caristuNote Deleted: 0140434
2022-08-29 07:36hgbotNote Added: 0140446
2022-08-29 07:40hgbotNote Added: 0140447
2022-08-29 07:43caristuNote Deleted: 0140446
2022-08-29 07:43caristuNote Deleted: 0140447
2022-08-29 07:43caristuNote Deleted: 0140394
2022-08-29 07:44caristuNote Deleted: 0140393
2022-08-29 12:49caristuDescription Updatedbug_revision_view_page.php?rev_id=24674#r24674
2022-08-29 12:49caristuDescription Updatedbug_revision_view_page.php?rev_id=24675#r24675
2022-08-30 07:55hgbotNote Added: 0140474
2022-08-30 07:57hgbotNote Added: 0140475
2022-08-30 08:52caristuIssue cloned0050104
2022-08-30 08:52caristuRelationship addedrelated to 0050104
2022-08-30 09:35caristuDescription Updatedbug_revision_view_page.php?rev_id=24690#r24690
2022-09-05 07:21caristuIssue cloned0050152
2022-09-05 07:21caristuRelationship addedrelated to 0050152
2022-09-05 08:48hgbotResolutionopen => fixed
2022-09-05 08:48hgbotStatusnew => closed
2022-09-05 08:48hgbotNote Added: 0140672
2022-09-05 08:48hgbotFixed in Version => RR22Q4
2022-09-05 08:48hgbotNote Added: 0140673
2022-09-05 08:48hgbotNote Added: 0140674
2022-09-05 08:48hgbotNote Added: 0140675
2022-09-05 08:49hgbotNote Added: 0140676
2022-09-05 08:49hgbotNote Added: 0140677
2022-09-05 08:49hgbotNote Added: 0140678
2022-09-05 08:49hgbotNote Added: 0140679
2022-09-05 08:49hgbotNote Added: 0140680
2022-09-05 08:49hgbotNote Added: 0140681
2022-09-05 08:50hgbotNote Added: 0140682
2022-09-05 08:50hgbotNote Added: 0140683
2022-10-24 10:01caristuRelationship addedblocks 0050162
2022-10-24 10:13caristuRelationship addedrelated to 0050614
2022-10-24 10:15caristuRelationship deletedrelated to 0050614
2022-10-24 10:15caristuRelationship addedrelated to 0050614
2022-10-24 11:26caristuRelationship addedrelated to 0050615
2023-05-26 10:30caristuRelationship addedrelated to 0052515

Notes
(0140386)
hgbot   
2022-08-25 10:30   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/399 [^]
(0140387)
hgbot   
2022-08-25 10:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/906 [^]
(0140392)
hgbot   
2022-08-25 11:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1162 [^]
(0140395)
hgbot   
2022-08-25 13:16   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.orderpreparation/-/merge_requests/12 [^]
(0140474)
hgbot   
2022-08-30 07:55   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.trainingmode/-/merge_requests/14 [^]
(0140475)
hgbot   
2022-08-30 07:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/28 [^]
(0140672)
hgbot   
2022-09-05 08:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/399 [^]
(0140673)
hgbot   
2022-09-05 08:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 280404ca228e2cc2f70ecbd3c2eb7698ed6de3ae
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 05-09-2022 08:46:24
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/280404ca228e2cc2f70ecbd3c2eb7698ed6de3ae [^]

fixes ISSUE-45785: Move hardware manager communication API to mobile.core

---
A src-db/database/model/tables/OBPOS_HARDWAREMNG.xml
A src-db/database/model/tables/OBPOS_PRINT_TEMPLATE.xml
A src-db/database/model/tables/OBPOS_PRINT_TEMPLATE_SUBREP.xml
A src-db/database/sourcedata/AD_EXCEPTIONS.xml
A src-db/database/sourcedata/OBPOS_PRINT_TEMPLATE.xml
A src-db/database/sourcedata/OBUIAPP_PROCESS.xml
A web-test/external-device/ExternalDeviceController.test.js
A web-test/external-device/actions/InitHardwareManager.test.js
A web-test/external-device/actions/PrintWelcome.test.js
A web-test/external-device/printing/PrintTemplate.test.js
A web-test/external-device/printing/PrintTemplateGeneration.test.js
A web-test/external-device/printing/PrintTemplateMock.js
A web-test/external-device/printing/PrintTemplateStore.test.js
A web-test/external-device/printing/printResult.txt
A web-test/external-device/printing/template.xml
A web-test/integration/remote-server/HardwareManagerServer.test.js
A web-test/model/synchronization-buffer/HardwareManagerEndpoint.test.js
A web/org.openbravo.mobile.core/app/external-device/ExternalDeviceController.js
A web/org.openbravo.mobile.core/app/external-device/actions/InitHardwareManager.js
A web/org.openbravo.mobile.core/app/external-device/actions/PrintWelcome.js
A web/org.openbravo.mobile.core/app/external-device/printing/PrintTemplate.js
A web/org.openbravo.mobile.core/app/external-device/printing/PrintTemplateStore.js
A web/org.openbravo.mobile.core/app/integration/remote-server/HardwareManagerServer.js
A web/org.openbravo.mobile.core/app/model/synchronization-buffer/HardwareManagerEndpoint.js
A web/org.openbravo.mobile.core/app/web-printer/bluetooth.js
A web/org.openbravo.mobile.core/app/web-printer/bt-printers/genericBTPrinter.js
A web/org.openbravo.mobile.core/app/web-printer/bt-printers/zebraZQ320.js
A web/org.openbravo.mobile.core/app/web-printer/escpos.js
A web/org.openbravo.mobile.core/app/web-printer/standardprinters.js
A web/org.openbravo.mobile.core/app/web-printer/typedarrays.js
A web/org.openbravo.mobile.core/app/web-printer/usb-printers/epsontmt20.js
A web/org.openbravo.mobile.core/app/web-printer/usb-printers/epsontmt20ii.js
A web/org.openbravo.mobile.core/app/web-printer/usb-printers/epsontmt88v.js
A web/org.openbravo.mobile.core/app/web-printer/usb-printers/hpa799.js
A web/org.openbravo.mobile.core/app/web-printer/usb-printers/ncr7197.js
A web/org.openbravo.mobile.core/app/web-printer/usb-printers/startsp100.js
A web/org.openbravo.mobile.core/app/web-printer/usb-printers/wincorth230.js
A web/org.openbravo.mobile.core/app/web-printer/usb.js
A web/org.openbravo.mobile.core/app/web-printer/webprinter.js
A web/org.openbravo.mobile.core/img/openbravo-logo.png
A web/org.openbravo.mobile.core/js/utils/openhardwareurl.js
A web/org.openbravo.mobile.core/res/checkdrawerstatus.xml
A web/org.openbravo.mobile.core/res/cleandisplay.xml
A web/org.openbravo.mobile.core/res/opendrawer.xml
A web/org.openbravo.mobile.core/res/welcome.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MENU.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/AD_TAB.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src-db/database/sourcedata/AD_TREENODE.xml
M src-db/database/sourcedata/AD_WINDOW.xml
M src/org/openbravo/mobile/core/MobileCoreComponentProvider.java
---
(0140674)
hgbot   
2022-09-05 08:48   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1a92e8cdb578e35d091a280cca2e3242892dfe0c
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 05-09-2022 08:47:25
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1a92e8cdb578e35d091a280cca2e3242892dfe0c [^]

related to ISSUE-45785: Move hardware manager communication API to mobile.core

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MENU.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/AD_TAB.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src-db/database/sourcedata/AD_TREENODE.xml
M src-db/database/sourcedata/AD_WINDOW.xml
M src-db/database/sourcedata/OBPOS_PRINT_TEMPLATE.xml
M src-db/database/sourcedata/OBUIAPP_PROCESS.xml
M src/org/openbravo/retail/posterminal/ApplicationCacheComponent.java
M src/org/openbravo/retail/posterminal/AutoRegisterHWM.java
M src/org/openbravo/retail/posterminal/OBPOSComponentProvider.java
M src/org/openbravo/retail/posterminal/event/TemplateEventHandler.java
M src/org/openbravo/retail/posterminal/term/TerminalProperties.java
M src/org/openbravo/retail/posterminal/utility/OBPOSPrintTemplateReader.java
M web-test/external-device/printing/PrintTemplate.test.js
M web-test/external-device/printing/PrintTemplateGeneration.test.js
M web-test/external-device/printing/PrintTemplateStore.test.js
M web-test/external-device/printing/TicketPrinter.test.js
M web/org.openbravo.retail.posterminal/app/external-device/ExternalDeviceController.js
M web/org.openbravo.retail.posterminal/app/external-device/printing/CashupPrinter.js
M web/org.openbravo.retail.posterminal/app/external-device/printing/PrintTemplate.js
M web/org.openbravo.retail.posterminal/app/external-device/printing/PrintTemplateStore.js
M web/org.openbravo.retail.posterminal/app/external-device/printing/TicketPrinter.js
M web/org.openbravo.retail.posterminal/js/components/modalselectprinters.js
M web/org.openbravo.retail.posterminal/js/datasource.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
M web/org.openbravo.retail.posterminal/js/utils/openhardwareurl.js
R src-db/database/model/tables/OBPOS_HARDWAREMNG.xml
R src-db/database/model/tables/OBPOS_PRINT_TEMPLATE.xml
R src-db/database/model/tables/OBPOS_PRINT_TEMPLATE_SUBREP.xml
R web-test/external-device/ExternalDeviceController.test.js
R web-test/external-device/actions/InitHardwareManager.test.js
R web-test/external-device/actions/PrintWelcome.test.js
R web-test/external-device/printing/PrintTemplateMock.js
R web-test/external-device/printing/printResult.txt
R web-test/external-device/printing/template.xml
R web-test/integration/remote-server/HardwareManagerServer.test.js
R web-test/model/synchronization-buffer/HardwareManagerEndpoint.test.js
R web/org.openbravo.retail.posterminal/app/external-device/actions/InitHardwareManager.js
R web/org.openbravo.retail.posterminal/app/external-device/actions/PrintWelcome.js
R web/org.openbravo.retail.posterminal/app/integration/remote-server/HardwareManagerServer.js
R web/org.openbravo.retail.posterminal/app/model/synchronization-buffer/HardwareManagerEndpoint.js
R web/org.openbravo.retail.posterminal/app/webprinter/bluetooth.js
R web/org.openbravo.retail.posterminal/app/webprinter/btprinters/genericBTPrinter.js
R web/org.openbravo.retail.posterminal/app/webprinter/btprinters/zebraZQ320.js
R web/org.openbravo.retail.posterminal/app/webprinter/escpos.js
R web/org.openbravo.retail.posterminal/app/webprinter/standardprinters.js
R web/org.openbravo.retail.posterminal/app/webprinter/typedarrays.js
R web/org.openbravo.retail.posterminal/app/webprinter/usb.js
R web/org.openbravo.retail.posterminal/app/webprinter/usbprinters/epsontmt20.js
R web/org.openbravo.retail.posterminal/app/webprinter/usbprinters/epsontmt20ii.js
R web/org.openbravo.retail.posterminal/app/webprinter/usbprinters/epsontmt88v.js
R web/org.openbravo.retail.posterminal/app/webprinter/usbprinters/hpa799.js
R web/org.openbravo.retail.posterminal/app/webprinter/usbprinters/ncr7197.js
R web/org.openbravo.retail.posterminal/app/webprinter/usbprinters/startsp100.js
R web/org.openbravo.retail.posterminal/app/webprinter/usbprinters/wincorth230.js
R web/org.openbravo.retail.posterminal/app/webprinter/webprinter.js
R web/org.openbravo.retail.posterminal/img/openbravo-logo.png
R web/org.openbravo.retail.posterminal/res/checkdrawerstatus.xml
R web/org.openbravo.retail.posterminal/res/cleandisplay.xml
R web/org.openbravo.retail.posterminal/res/opendrawer.xml
R web/org.openbravo.retail.posterminal/res/welcome.xml
---
(0140675)
hgbot   
2022-09-05 08:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/906 [^]
(0140676)
hgbot   
2022-09-05 08:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1162 [^]
(0140677)
hgbot   
2022-09-05 08:49   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: a46d372ae040c33df0414cf7650915b501549c58
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 05-09-2022 06:48:40
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/a46d372ae040c33df0414cf7650915b501549c58 [^]

related to ISSUE-45785: use mobile.core package

---
M src-test/org/openbravo/pos2/master/print/TemplateValidator.java
M src-test/org/openbravo/pos2/master/print/TerminalTemplateTest.java
M src/org/openbravo/pos2/POS2Initializer.java
M src/org/openbravo/pos2/master/print/PrintSubreportTemplate.java
M src/org/openbravo/pos2/master/print/PrintTemplate.java
M src/org/openbravo/pos2/master/print/TerminalTemplate.java
---
(0140678)
hgbot   
2022-09-05 08:49   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.orderpreparation [^]
Changeset: c7571697f9d6c7fb8ec22a582ebc737af0b388f0
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 05-09-2022 08:11:42
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.orderpreparation/-/commit/c7571697f9d6c7fb8ec22a582ebc737af0b388f0 [^]

related to ISSUE-45785: use mobile.core labels

---
M web/org.openbravo.retail.orderpreparation/js/utils.js
---
(0140679)
hgbot   
2022-09-05 08:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.orderpreparation/-/merge_requests/12 [^]
(0140680)
hgbot   
2022-09-05 08:49   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.trainingmode [^]
Changeset: fd4a97b389013699d7dfeed4032653d3f9a7b175
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 05-09-2022 08:13:06
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.trainingmode/-/commit/fd4a97b389013699d7dfeed4032653d3f9a7b175 [^]

related to ISSUE-45785: use mobile.core package

---
M src/org/openbravo/retail/trainingmode/OBRTM_TerminalProperties.java
---
(0140681)
hgbot   
2022-09-05 08:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.trainingmode/-/merge_requests/14 [^]
(0140682)
hgbot   
2022-09-05 08:50   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore [^]
Changeset: c5fbe4c591a7c89bc9e1c982a76ae6b5f2cff1e9
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 05-09-2022 06:49:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/commit/c5fbe4c591a7c89bc9e1c982a76ae6b5f2cff1e9 [^]

related to ISSUE-45785: use mobile.core package

---
M src/org/openbravo/retail/copystore/process/BackupPrintersProcess.java
---
(0140683)
hgbot   
2022-09-05 08:50   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/28 [^]