Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037854Openbravo ERP07. Sales managementpublic2018-02-07 17:042018-02-09 14:41
ngarcia 
Triage Omni OMS 
urgentmajoralways
newopen 
5
 
 
Core
No
0037854: Grand total of voiding an issue does not match with the grand total of the original one
Grand total of voiding an issue does not match with the grand total of the original one.
In an environment with Openbravo For Retail installed:

In the backend:
   Change 'Entregas IVA 21%' rate from 21 to 16
   Change 'Avalanche transceiver' product's price to 52 in 'The White Valley Group Sale Price List Version' price list (Price Includes Tax)
   Add a Price Adjustment in Discounts and Promotions window:
      Discount %: 2.3
      Included Products: Only those defined
   Add 'Avalanche transceiver' in products tab

In the POS:
   Do the cash up
   Create a new receipt
   Add two units of 'Avalanche transceiver'
   Check the total amount is 101.61
   Do the cash up again

In the backend:
   Check the created sales order and sales invoice have a total gross amount of 101.61
   Void the invoice and change it has an amount of -101.62
The process should copy the original invoice and reverse the quantities and amounts instead of recalculating the amounts
No tags attached.
related to defect 0037840 closed Retail Retail Modules Rounding issues when adding Discounts and Promotions to POS documents, wrong total gross amount 
Issue History
2018-02-07 17:04ngarciaNew Issue
2018-02-07 17:04ngarciaAssigned To => Triage Finance
2018-02-07 17:04ngarciaModules => Core
2018-02-07 17:04ngarciaResolution time => 1519686000
2018-02-07 17:04ngarciaTriggers an Emergency Pack => No
2018-02-07 17:05ngarciaRelationship addedrelated to 0037840
2018-02-07 17:05ngarciaProposed Solution updated
2018-02-07 17:06ngarciaIssue Monitored: networkb
2018-02-08 22:38markmm82Assigned ToTriage Finance => markmm82
2018-02-08 22:39markmm82Assigned Tomarkmm82 => Triage Finance
2018-02-09 14:41dmiguelezNote Added: 0102304
2018-02-09 14:41dmiguelezTypedefect => design defect

Notes
(0102304)
dmiguelez   
2018-02-09 14:41   
This Issue has been moved to design defect.

The problem is that the c_invoice_post is being called again after a voided invoice is processed.
Managing the logic of not recalculating amounts while recalculating necessary fields is complex and should be managed as a design defect.