Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0052489
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[POS2] Restaurantscriticalalways2023-05-10 15:552023-05-23 19:15
Reporternicola_uvaView Statuspublic 
Assigned TojavierRodriguez 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version23Q1.3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0052489: Menu [Tax calculation] - Not possible to finalize a ticket paid partially nor do reverse payment

DescriptionTax calculation error on Menu.Is not possible to finalize a ticket paid partially nor do reverse payment
Steps To Reproduce1) Login https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/pos/?terminal=VBS-2 [^]
2) select schema "Restaurant"
3) add to the ticketthe menu "Simple menu"
4) finalize the payment
5)open the ticket paid in (5)
6) click on review payments -> then
 a) try to reverse payment
 b) try to pay pending amount by cash
7) Dialog is showed saying tax not found(see image attached) -> ERROR
Proposed SolutionIn:
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/model/business-object/ticket/TicketUtils.js#L616 [^]

Change followinf line:
ticketTaxRules = this.ticket.receiptTaxes.map(receiptTax => taxRules.find(taxRule => taxRule.id === receiptTax.taxid));

To something like this:
ticketTaxRules = taxRules.filter(rule -> condition1 OR condition2)

Where:
condition1: rule id matches ticket receiptTaxes taxid (current condition)
condition2: rule is bom and rule.taxCategory matches with the tax category of any ticket line
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0052411pi closedjavierRodriguez Menu [Tax calculation] - Not possible to finalize a ticket paid partially nor do reverse payment 

-  Notes
(0149983)
hgbot (developer)
2023-05-19 13:37

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1203 [^]
(0150162)
hgbot (developer)
2023-05-23 19:15

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 793498476f814d09b92424eba0e0beb0729a4d04
Author: Javier Rodríguez Regueiro <javier.rodriguez@openbravo.com>
Date: 23-05-2023 17:15:56
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/793498476f814d09b92424eba0e0beb0729a4d04 [^]

Fixed ISSUE-52489: [23Q1] Improve condition to add taxes in booked tickets

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/TicketUtils.js
---
(0150163)
hgbot (developer)
2023-05-23 19:15

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1203 [^]

- Issue History
Date Modified Username Field Change
2023-05-19 08:42 guilleaer Type defect => backport
2023-05-19 08:42 guilleaer Target Version pi => 23Q1.3
2023-05-19 13:37 hgbot Note Added: 0149983
2023-05-23 19:15 hgbot Resolution open => fixed
2023-05-23 19:15 hgbot Status scheduled => closed
2023-05-23 19:15 hgbot Fixed in Version => RR23Q1.3
2023-05-23 19:15 hgbot Note Added: 0150162
2023-05-23 19:15 hgbot Note Added: 0150163


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker