Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028335Retail ModulesCash uppublic2014-12-02 12:472015-04-16 15:17
malsasua 
mario_castello 
highmajoralways
closedfixed 
20Community Appliance
 
RR15Q2 
adrianromero
Coding ( Testing )
No
0028335: in backoffice, the cash up report does not work when the cashup includes quotations
The report of cashup, in the backoffice, does not work when the cashup includes quotations.
Error is returned:

org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [select abs(sum(ordLine.lineNetAmount)) from OrderLine as ordLine where exists (select 1 from FIN_Payment_ScheduleDetail d where d.orderPaymentSchedule.order = ordLine.salesOrder and exists (select 1 from FIN_Finacc_Transaction t where t.reconciliation.id in () and t.finPayment = d.paymentDetails.finPayment))and ordLine.orderedQuantity > 0]
. in webpos (terminal VBS-1):
 . create a receipt
 . pay and close it
 . create a quotation
 . confirm it (under evaluation is displayed)
 . close the quotation
 . do a cashup

. in backoffice
 . go to terminal VBS-1
 . print the previous cashup
error is returned:

org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [select abs(sum(ordLine.lineNetAmount)) from OrderLine as ordLine where exists (select 1 from FIN_Payment_ScheduleDetail d where d.orderPaymentSchedule.order = ordLine.salesOrder and exists (select 1 from FIN_Finacc_Transaction t where t.reconciliation.id in () and t.finPayment = d.paymentDetails.finPayment))and ordLine.orderedQuantity > 0]
No tags attached.
depends on backport 0029451RR15Q1.3 closed mario_castello in backoffice, the cash up report does not work when the cashup includes quotations 
has duplicate defect 0029278 closed marvintm The Cash Up report fails on the backend if it is has not been closed 
Issue History
2014-12-02 12:47malsasuaNew Issue
2014-12-02 12:47malsasuaAssigned To => marvintm
2014-12-02 12:47malsasuaTriggers an Emergency Pack => No
2014-12-02 19:03malsasuaRegression level => Coding ( Testing )
2014-12-02 19:26malsasuaNote Added: 0072255
2014-12-02 19:28malsasuaNote Edited: 0072255bug_revision_view_page.php?bugnote_id=0072255#r7205
2015-01-08 15:31mario_castelloAssigned Tomarvintm => mario_castello
2015-01-08 15:32mario_castelloStatusnew => scheduled
2015-01-08 15:32mario_castellofix_in_branch => pi
2015-02-04 17:51hgbotCheckin
2015-02-04 17:51hgbotNote Added: 0074091
2015-02-04 17:51hgbotStatusscheduled => resolved
2015-02-04 17:51hgbotResolutionopen => fixed
2015-02-04 17:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d720a2fe3967ab3faae81ff538daecc0ced9c07 [^]
2015-02-20 13:34migueldejuanaReview Assigned To => migueldejuana
2015-02-20 13:34migueldejuanaNote Added: 0074718
2015-02-20 13:34migueldejuanaStatusresolved => closed
2015-03-30 09:24malsasuaStatusclosed => new
2015-03-30 09:24malsasuaResolutionfixed => open
2015-03-30 09:24malsasuaStatusnew => scheduled
2015-03-30 09:24malsasuaStatusscheduled => resolved
2015-03-30 09:24malsasuaFixed in Version => RR15Q2
2015-03-30 09:24malsasuaResolutionopen => fixed
2015-03-30 09:25malsasuaNote Added: 0076108
2015-03-30 09:25malsasuaStatusresolved => closed
2015-03-30 09:27malsasuaRelationship addedhas duplicate 0029278
2015-04-10 15:03hgbotCheckin
2015-04-10 15:03hgbotNote Added: 0076452
2015-04-10 15:03hgbotStatusclosed => resolved
2015-04-10 15:03hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d720a2fe3967ab3faae81ff538daecc0ced9c07 [^] => http://code.openbravo.com/retail/backports/3.0RR15Q1.3/org.openbravo.retail.posterminal/rev/a90ac2423927e1ce7ef84ca55f97b6b0916eb3b8 [^]
2015-04-16 15:17adrianromeroReview Assigned Tomigueldejuana => adrianromero
2015-04-16 15:17adrianromeroNote Added: 0076591
2015-04-16 15:17adrianromeroStatusresolved => closed

Notes
(0072255)
malsasua   
2014-12-02 19:26   
(edited on: 2014-12-02 19:28)
with the development that the cashup always is synced with backend, in pos terminal window, in cashup report tab, the last cashup is the present cashup, it is not finished yet, then when you try to print the report of this cashup, the error reported is returned

(0074091)
hgbot   
2015-02-04 17:51   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2d720a2fe3967ab3faae81ff538daecc0ced9c07
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Wed Feb 04 10:50:49 2015 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d720a2fe3967ab3faae81ff538daecc0ced9c07 [^]

fixed issue 28335: in backoffice, the cash up report does not work when the cashup includes quotations

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
---
(0074718)
migueldejuana   
2015-02-20 13:34   
Tested and reviewed in 98cbad1907b7
(0076108)
malsasua   
2015-03-30 09:25   
reopened to create backport
(0076452)
hgbot   
2015-04-10 15:03   
Repository: retail/backports/3.0RR15Q1.3/org.openbravo.retail.posterminal
Changeset: a90ac2423927e1ce7ef84ca55f97b6b0916eb3b8
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Wed Feb 04 10:50:49 2015 -0600
URL: http://code.openbravo.com/retail/backports/3.0RR15Q1.3/org.openbravo.retail.posterminal/rev/a90ac2423927e1ce7ef84ca55f97b6b0916eb3b8 [^]

fixed issue 28335: in backoffice, the cash up report does not work when the cashup includes quotations

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
---
(0076591)
adrianromero   
2015-04-16 15:17   
Verified. Now if the cashup is not processed yet, it cannot be printed.