Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037890Openbravo ERP07. Sales managementpublic2018-02-12 16:052018-03-06 21:27
ngarcia 
collazoandy4 
urgentminoralways
scheduledopen 
5
 
 
Core
No
0037890: Wrong total gross amount when reactivating an order or a invoice which includes two basic discount of 100%
Wrong total gross amount when reactivating an order or a invoice which includes two basic discount of 100%
As group admin role:
   Create a Basic Discount of 100%
   Assign it to Hoteles Buenas Noches, S.A. business partner
   Create a sales invoice to it
   Check the discount is shown in the Basic Discounts tab
   Add a new record in discounts tab with the same discount
   Add a product to it with a tax rate different from 0 and check the Total Net Amount and Total Gross Amounts are correct
   Complete it and check both Total Gross Amount and Total Net Amount are negative
   Reactivate it and check the Total Gross Amount is wrong, it does not include the tax amount (Total Gross Amount = Total Net Amount)
   If you now remove the discount and complete the invoice again, the total gross amount will remain wrong

   Check the same for sales orders
No tags attached.
related to defect 0035699 closed AtulOpenbravo Wrong total gross amount when reactivating an order or a invoice which includes a basic discount of 100% 
Issue History
2018-02-12 16:05ngarciaNew Issue
2018-02-12 16:05ngarciaAssigned To => Triage Finance
2018-02-12 16:05ngarciaModules => Core
2018-02-12 16:05ngarciaResolution time => 1520204400
2018-02-12 16:05ngarciaTriggers an Emergency Pack => No
2018-02-12 16:05ngarciaRelationship addedrelated to 0035699
2018-02-15 15:51collazoandy4Assigned ToTriage Finance => collazoandy4
2018-02-15 15:52collazoandy4Statusnew => scheduled
2018-02-15 16:02ngarciaIssue Monitored: networkb
2018-03-02 11:03dmiguelezNote Added: 0102911
2018-03-02 11:04dmiguelezSeveritymajor => minor
2018-03-05 16:49dmiguelezResolution time1520204400 =>
2018-03-06 21:27collazoandy4Note Added: 0103043

Notes
(0102911)
dmiguelez   
2018-03-02 11:03   
This is a minor issue.

It should not be possible to complete an Order/Invoice with more than 100% of discount. This should be controlled when completing the document.
(0103043)
collazoandy4   
2018-03-06 21:27   
Test Plan
  Go to Product window and create a new record:
    Search Key/Name: Product 100%
    Product Category: Others
    Product Type: Service
  Go to Basic Discount window and create a new record:
    Name: Total Discount
    Product: Product 100%
    Discount %: 100
  Go to Sales Order window and create a new record:
    Business Partner: Hoteles Buenas Noches, S.A.
    Create a new record in Lines tab:
      Product: Zumo de Piña 0,5L
      Ordered Quantity: 10
    Create two new records in Basic Discount for Total Discount
    Book the order and check an error message is shown: 'Discount amount exceed 100%'
    Edit the second Discount line to Cascade: Y
    Book the order and check the process ends with out error

Test Plan II
  Go to Price List window and set Price Include Taxes: Y to Tarifa de Ventas record
  Go to Sales Order window and create a new record:
    Business Partner: Hoteles Buenas Noches, S.A.
    Create a new record in Lines tab:
      Product: Zumo de Piña 0,5L
      Ordered Quantity: 10
      Gross Unit Price: 1.13
    Create two new records in Basic Discount for Total Discount
    Book the order and check an error message is shown: 'Discount amount exceed 100%'
    Edit the second Discount line to Cascade: Y
    Book the order and check the process ends with out error

Test Plan III
  Repeat the two previous test plan for sales invoice