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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036198
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 02. Master data managementmajoralways2017-06-08 11:232017-06-23 13:53
ReporterngarciaView Statuspublic 
Assigned Tocollazoandy4 
PriorityurgentResolutionfixedFixed in Version3.0PR17Q3
StatusclosedFix in branchFixed in SCM revisionb1547bcf9013
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toaferraz
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036198: Volume Discount Invoice is created with 0 total gross amount if the price list includes taxes

DescriptionVolume Discount Invoice is created with 0 total gross amount if the price list includes taxes
Steps To ReproduceAs System Admin role:
   Set as Active the Volume Discount and Volume Discount Settlement windows
   Compile them

As group admin role:
   Set Tarifa de ventas as Price Includes Tax = 'Y'
   Check it is assigned to Hoteles Buenas Noches, S.A. business partner (Customer tab)
   Create a new record in Volume Discount window:
      Included product: All excluding defined
      Included Product Categories: All excluding defined
   Add a record in Volume Discount Parameters:
      Discount %: 5
      Min Amount: 0
   Add Hoteles Buenas Noches, S.A. in Business Partner tab
   Create a Sales Invoice for that business partner
   Go to Business Partner - Volume Discounts tab and launch the Create Invoice (Volume Discount) process
   Check the Line Net and Gross Amounts are 0 and thus the Total Net and Gross Amounts
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0097480)
collazoandy4 (reporter)
2017-06-19 16:14

As System Admin role:
  Set Core module as development
  Go to windows tabs and fields window and select Business Partner record:
    Check active field for the Volume Discount and Volume Discount Settlement tabs
  Rebuild the system

As group admin role:
  Go to Price List window and edit Tarifa de ventas record:
    Price Includes Tax = 'Y'
  Go to Volume Discount window and create a new record:
    Name: Issue
    Included product: All excluding defined
    Included Product Categories: All excluding defined
    Add a record in Volume Discount Parameters tab:
      Discount %: 5
      Min Amount: 0
    Add a new record in Business Partner tab:
      Business Partner: Hoteles Buenas Noches, S.A.
      Valid from date: today
  Go to Sales Invoice window and create a new record:
    Business Partner: Hoteles Buenas Noches, S.A.
    Create a new record in Lines tab:
      Product: Limonada 0,5L
      Invoiced Quantity: 10
    Complete the invoice
  Go to Business Partner window and select Hoteles Buenas Noches, S.A. record
    In Volume Discounts tab launch the Create Invoice (Volume Discount) process
  Go to the invoice created by the process and check the total net, gross amounts, line net are not 0
  
Test Plan II
  Go to Sales Invoice window and create a new record:
    Business Partner: Hoteles Buenas Noches, S.A.
    Create a new record in Lines tab:
      Product: Cola 0,5L
      Invoiced Quantity: 10
      Tax: Ventas exentas
    Create a new record in Basic Discounts tab:
      Basic Discount: Descuento 5%
   Complete the invoice and check:
     A new discount line was added with Net unit price / Line net amount: -0.42
(0097584)
hgbot (developer)
2017-06-22 13:49

Repository: erp/devel/pi
Changeset: b1547bcf9013398566e63cd1176d1f572fae1696
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Sat Jun 17 00:35:55 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/b1547bcf9013398566e63cd1176d1f572fae1696 [^]

Fixes issue 36198: Volume Discount Invoice is created with 0 total gross amount

The gross amount value was not added to the created invoice line causing 0 amount
if the price list include taxes

Now the gross amount is added to the invoice line and recalculate the line gross amount
if the line qtyinvoiced <> 0

---
M src-db/database/model/functions/M_RAPPEL_INVOICE_CREATE.xml
M src-db/database/model/triggers/C_INVOICELINE_BEFORE_TRG.xml
---
(0097585)
aferraz (manager)
2017-06-22 13:50

Code review + Testing OK
(0097614)
hudsonbot (developer)
2017-06-23 13:53

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/678e11052373 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2017-06-08 11:23 ngarcia New Issue
2017-06-08 11:23 ngarcia Assigned To => Triage Finance
2017-06-08 11:23 ngarcia Modules => Core
2017-06-08 11:23 ngarcia Resolution time => 1498687200
2017-06-08 11:23 ngarcia Triggers an Emergency Pack => No
2017-06-08 11:23 ngarcia Issue Monitored: networkb
2017-06-09 13:42 aferraz Assigned To Triage Finance => collazoandy4
2017-06-16 16:06 collazoandy4 Status new => scheduled
2017-06-19 16:14 collazoandy4 Note Added: 0097480
2017-06-22 13:49 hgbot Checkin
2017-06-22 13:49 hgbot Note Added: 0097584
2017-06-22 13:49 hgbot Status scheduled => resolved
2017-06-22 13:49 hgbot Resolution open => fixed
2017-06-22 13:49 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b1547bcf9013398566e63cd1176d1f572fae1696 [^]
2017-06-22 13:50 aferraz Review Assigned To => aferraz
2017-06-22 13:50 aferraz Note Added: 0097585
2017-06-22 13:50 aferraz Status resolved => closed
2017-06-22 13:50 aferraz Fixed in Version => 3.0PR17Q3
2017-06-23 13:53 hudsonbot Checkin
2017-06-23 13:53 hudsonbot Note Added: 0097614


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker