Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0052643Openbravo LocalizationsLocalization Italypublic2023-06-01 16:552023-06-21 09:12
wicherr 
fermin_gascon 
highmajoralways
closedfixed 
5
 
 
0052643: [RT Printer] Error trying to make a duplicate of an invoice
When trying do print a duplicata of a full invoice, we have an error code = 16 and the fiscal department is missing in what is sent to rt printer.


line: Object.sendFiscalDocument (https://norauto-dev.services.openbravo.com/openbravo/web/js/gen/6d0410342e54b902e1e06dc56c27b673.js:217369:8 [^]) (*)
6d0410342e54b902e1e06dc56c27b673.js:356 Fiscalization Error : <?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> [^]
<soapenv:Body>
<response success="false" code="PRINTER ERROR" status="16">
    <addInfo>
        <elementList>lastCommand,printerStatus</elementList>
        <lastCommand>80</lastCommand>
        <printerStatus>00180</printerStatus>
    </addInfo>
</response>
</soapenv:Body>
</soapenv:Envelope>
; line: Object.sendFiscalDocument (https://norauto-dev.services.openbravo.com/openbravo/web/js/gen/6d0410342e54b902e1e06dc56c27b673.js:217396:12 [^]) (*)
OB.Console.error @ 6d0410342e54b902e1e06dc56c27b673.js:356
6d0410342e54b902e1e06dc56c27b673.js:340 Fiscalization body : <?xml version="1.0" encoding="utf-8"?>
<!--
************************************************************************************
* Copyright (C) 2022 Openbravo S.L.U.
* Licensed under the Openbravo Commercial License version 1.0
* You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html [^]
* or in the legal folder of this module distribution.
************************************************************************************
-->
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> [^]
  <s:Body>
    <printerFiscalDocument>
    
    
          <printRecMessage message="DUPLICATO" messageType="6" index="1" font="1" />
      
      <printRecMessage message="SNC SP SOLUZIONI PUBBLIC" messageType="6" index="2" font="1" />
      <printRecMessage message="P.I. " messageType="6" index="2" font="1" />
      <printRecMessage message="VIA LOMBARDORE 218 , " messageType="6" index="3" font="1" />
      <printRecMessage message="10040" messageType="6" index="4" font="1" />
      <printRecMessage message="FATTURA N. NORIT0416P57I0000001" messageType="6" index="5" font="1" />

      <beginFiscalDocument operator="1" documentType="directInvoice" documentNumber="1"/>
        
          <printRecItem
            operator="1"
            justification="1"
            description=" CL C/BATTERIA VIAGGIO USB"
            quantity="1"
            unitPrice="14,95"
            department="undefined" />
          
          <printRecItemAdjustment
            operator="1"
            justification="1"
            adjustmentType="0"
            description="8-ERRORE SU PREVENTIVO - %"
            amount="14,94" />
          
      <printRecTotal
        description="Contanti EUR"
        payment="0,01"
        paymentType="0"
        index="0"
        justification="2" />
      

      <displayText data=" Totale. 0.01 Grazie. " />
    <endFiscalDocument operator="1" />
    
    </printerFiscalDocument>
  </s:Body>
</s:Envelope>
; line: Object.sendFiscalDocument (https://norauto-dev.services.openbravo.com/openbravo/web/js/gen/6d0410342e54b902e1e06dc56c27b673.js:217397:12 [^]) (*)
Step to reproduce :

- On webPOS, create an invoice
- Re-open the invoice
- Try to print a duplicata

(Reproduceable easily loading the invoice NORIT0416P57-0000001 on Norauto DEV environment)
NOR
Issue History
2023-06-01 16:55wicherrNew Issue
2023-06-01 16:55wicherrAssigned To => psanjuan
2023-06-01 16:55wicherrTag Attached: NOR
2023-06-02 11:37psanjuanAssigned Topsanjuan => fermin_gascon
2023-06-13 14:54psanjuanNote Added: 0151111
2023-06-13 15:01psanjuanNote Edited: 0151111bug_revision_view_page.php?bugnote_id=0151111#r26255
2023-06-13 16:41psanjuanNote Added: 0151119
2023-06-21 09:12adrianromeroStatusnew => scheduled
2023-06-21 09:12adrianromeroStatusscheduled => resolved
2023-06-21 09:12adrianromeroResolutionopen => fixed
2023-06-21 09:12adrianromeroNote Added: 0151423
2023-06-21 09:12adrianromeroStatusresolved => closed

Notes
(0151111)
psanjuan   
2023-06-13 14:54   
(edited on: 2023-06-13 15:01)
Propose solution updated:
1.- it is going to be controlled that it is not possible to reprint a Direct Invoice from the RT-Printer, as that option is not allowed by the RT-printer.
As a consequence of that we will remove some custom code that was implement which sent while reprinting the sales transaction to the RT-Printer once more. That is wrong, as the reprint of a sales transaction should not imply to fiscalize that transaction once more, even if talking about a Non Fiscal document.
2.- it is going to be defined how to reprint a full invoice in pdf format by using a different printer, as that is what we think is what required by the final customer.

(0151119)
psanjuan   
2023-06-13 16:41   
See JiRA related
https://openbravo.atlassian.net/browse/RM-6703 [^]
(0151423)
adrianromero   
2023-06-21 09:12   
Delivered in environments

https://gitlab.com/openbravo/customers/NOR/org.openbravo.retail.rtprinter/-/merge_requests/47 [^]
https://gitlab.com/openbravo/customers/NOR/com.openbravo.norauto.customizations/-/merge_requests/452 [^]