Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047216Retail ModulesWeb POSpublic2021-06-23 10:082021-07-05 07:23
malsasua 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR21Q3 
Production - Confirmed Stable
2020-06-02
RR20Q4
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/9f2577afb7b65304a5e4ee18bb834ef5b41df494#c7e7b1a1803a89252d22c91692bd17768ca5938e_10794_10706 [^]
No
0047216: Reprint invoice does not work
In POS, when you try to print the invoice of one paid receipt, error is returned:
Error:
Uncaught (in promise) TypeError: Cannot read property 'scale' of undefined
    at Function.toBigDecimal (9a68e926e3fc6dc57d07450aa2833554.js:105)
    at Function.add (9a68e926e3fc6dc57d07450aa2833554.js:113)
    at Function.add (9a68e926e3fc6dc57d07450aa2833554.js:178)
    at setLineTaxes (9a68e926e3fc6dc57d07450aa2833554.js:90298)
    at 9a68e926e3fc6dc57d07450aa2833554.js:90204
    at Array.map (<anonymous>)
    at Function.b.map.b.collect (underscore-1.3.3.min.js:11)
    at regenerateTaxes (9a68e926e3fc6dc57d07450aa2833554.js:90189)
    at calculateTaxes (9a68e926e3fc6dc57d07450aa2833554.js:90176)
    at G.d.modelOfAnOrder.calculateTaxes (9a68e926e3fc6dc57d07450aa2833554.js:90376)
[BO]
. pricelist with not include taxes
. POSTerminal Type:
Generate Aggregate Invoices: false

[POS]
. new receipt
. complete it
. in Menu-> open receipt
. select previous receipt
. in Menu-> print : Popup is opened (see attachment)
. click in "Print Invoices": error is returned
No tags attached.
depends on backport 0047250RR21Q2.1 closed ranjith_qualiantech_com Reprint invoice does not work 
depends on backport 0047251RR21Q1.4 closed ranjith_qualiantech_com Reprint invoice does not work 
png issue1.png (1,265,922) 2021-06-23 11:03
https://issues.openbravo.com/file_download.php?file_id=15957&type=bug
jpeg WhatsApp Image 2021-06-29 at 09.35.22.jpeg (258,326) 2021-06-29 14:49
https://issues.openbravo.com/file_download.php?file_id=15974&type=bug
jpeg
Issue History
2021-06-23 10:08malsasuaNew Issue
2021-06-23 10:08malsasuaAssigned To => Retail
2021-06-23 10:08malsasuaResolution time => 1625004000
2021-06-23 10:08malsasuaTriggers an Emergency Pack => No
2021-06-23 10:12PracticsIssue Monitored: Practics
2021-06-23 10:42ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-06-23 11:03malsasuaFile Added: issue1.png
2021-06-23 12:27santi_lozanoPrioritynormal => high
2021-06-25 03:53hgbotNote Added: 0129786
2021-06-25 08:52ranjith_qualiantech_comRegression level => Production - Confirmed Stable
2021-06-25 08:52ranjith_qualiantech_comRegression date => 2020-06-02
2021-06-25 08:52ranjith_qualiantech_comRegression introduced in release => RR20Q4
2021-06-25 08:52ranjith_qualiantech_comRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/9f2577afb7b65304a5e4ee18bb834ef5b41df494#c7e7b1a1803a89252d22c91692bd17768ca5938e_10794_10706 [^]
2021-06-25 08:55marvintmStatusnew => scheduled
2021-06-28 07:20hgbotNote Added: 0129825
2021-06-28 07:20hgbotResolutionopen => fixed
2021-06-28 07:20hgbotStatusscheduled => closed
2021-06-28 07:20hgbotFixed in Version => RR21Q3
2021-06-28 07:20hgbotNote Added: 0129826
2021-06-29 14:49santi_lozanoStatusclosed => new
2021-06-29 14:49santi_lozanoFile Added: WhatsApp Image 2021-06-29 at 09.35.22.jpeg
2021-06-29 14:52santi_lozanoNote Added: 0129947
2021-06-29 14:53santi_lozanoResolution time1625004000 => 1626732000
2021-07-01 16:06hgbotNote Added: 0130067
2021-07-01 16:24hgbotStatusnew => closed
2021-07-01 16:24hgbotFixed in VersionRR21Q3 => RR21Q4
2021-07-01 16:24hgbotNote Added: 0130069
2021-07-01 16:24hgbotNote Added: 0130070
2021-07-02 13:41marvintmFixed in VersionRR21Q4 => RR21Q3
2021-07-02 13:42hgbotNote Added: 0130098
2021-07-05 07:23hgbotNote Added: 0130125
2021-07-05 07:23hgbotNote Added: 0130126

Notes
(0129786)
hgbot   
2021-06-25 03:53   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/484 [^]
(0129825)
hgbot   
2021-06-28 07:20   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/484 [^]
(0129826)
hgbot   
2021-06-28 07:20   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 6365a73bb01319d0038d92f2101cb4d016e91468
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-06-28T05:20:22+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/6365a73bb01319d0038d92f2101cb4d016e91468 [^]

Fixed ISSUE-47216: Line net amount should be used to print invoices

---
M src/org/openbravo/retail/posterminal/InvoiceLinesProperties.java
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---
(0129947)
santi_lozano   
2021-06-29 14:52   
Reopened again
Customer applied the fix, now it can reprint invoice and order but the quantities are not correct
(see image attached now, first case is ok old one, the others the invoice and the order reprint incorrect)
it happens when a line has a promotion and always with rate without taxes
(0130067)
hgbot   
2021-07-01 16:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/500 [^]
(0130069)
hgbot   
2021-07-01 16:24   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: e926eab2f347103a225ff5d65886fdb0c955a418
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-07-01T14:23:55+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/e926eab2f347103a225ff5d65886fdb0c955a418 [^]

Fixed ISSUE-47216: LineNetAmount should be used to print InvoiceLine TotalAmount

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
M web/org.openbravo.retail.posterminal/js/utils/ticketListUtils.js
---
(0130070)
hgbot   
2021-07-01 16:24   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/500 [^]
(0130098)
hgbot   
2021-07-02 13:42   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/504 [^]
(0130125)
hgbot   
2021-07-05 07:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/504 [^]
(0130126)
hgbot   
2021-07-05 07:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1ebe630e045be953b0a9c83ca9fc2f5077de07ab
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-07-02T15:29:57+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1ebe630e045be953b0a9c83ca9fc2f5077de07ab [^]

Fixed ISSUE-47216: LineNetAmount should be used to print InvoiceLine TotalAmount

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
M web/org.openbravo.retail.posterminal/js/utils/ticketListUtils.js
---