Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020010Openbravo ERP07. Sales managementpublic2012-03-13 13:342012-04-02 06:11
VictorVillar 
jecharri 
urgentmajoralways
closedfixed 
5
3.0MP8.1 
3.0MP10 
Core
No
0020010: Error in Create Credit process when there is a discount line in Return from Customer
If there is a discount line in Return from Customer, the user cannot create a reversed invoice with the Create Credit process (c_invoice_post), beacuse this process does not allow positive lines, and in DB discount lines are positive.
As group admin role,
Go to Business Partner window,
   select Sleep Well Hotels,
go to Discount tab
   create new one: Discount 10%
   apply in order: Yes
Go to sales order window,
   Create a new one:
    Lines: Ale beer
    Qty: 2
Book it

Go to Goods shipment window:
   create a new one -->Sleep Well Hotels
   Create Lines from: Sales order before
Complete it.

Go to Sales invoice:
   create new one, same business partner
   create lines from the Sales order before
complete it.

Go to Return from Customer:
   create a new one, pick and edit lines button:
     select the Line Ale beer
     Returned qty: 1
click in Done button.
book it and click in Create Credit button.
An error message appear:
ERROR=ReturnInvoiceNegativeQty@
This means that this process does not allow the possitive lines for Reversed Invoices. (discount lines are positive in DB)
Check either if the c_invoice_discount_id is null or is not in the c_invoiceline in c_invoice_post function.
No tags attached.
Issue History
2012-03-13 13:34VictorVillarNew Issue
2012-03-13 13:34VictorVillarAssigned To => vmromanos
2012-03-13 13:34VictorVillarModules => Core
2012-03-13 13:34VictorVillarResolution time => 1334354400
2012-03-13 13:34VictorVillarIssue Monitored: networkb
2012-03-13 13:35VictorVillarversion => 3.0MP8.1
2012-03-13 17:15vmromanosAssigned Tovmromanos => jonalegriaesarte
2012-03-15 18:38jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2012-03-23 12:38hgbotCheckin
2012-03-23 12:38hgbotNote Added: 0046681
2012-03-23 12:38hgbotStatusnew => resolved
2012-03-23 12:38hgbotResolutionopen => fixed
2012-03-23 12:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/01288f09856b9ad804a62351a445b836d541980c [^]
2012-03-23 14:04hgbotCheckin
2012-03-23 14:04hgbotNote Added: 0046686
2012-03-23 14:08jecharriNote Added: 0046687
2012-03-29 13:53VictorVillarNote Added: 0046883
2012-03-29 13:53VictorVillarStatusresolved => closed
2012-04-02 06:11hudsonbotCheckin
2012-04-02 06:11hudsonbotNote Added: 0047211
2012-04-02 06:11hudsonbotCheckin
2012-04-02 06:11hudsonbotNote Added: 0047213

Notes
(0046681)
hgbot   
2012-03-23 12:38   
Repository: erp/devel/pi
Changeset: 01288f09856b9ad804a62351a445b836d541980c
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Fri Mar 23 12:36:56 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/01288f09856b9ad804a62351a445b836d541980c [^]

Fixes issue 20010: Error in Create Credit process when there is a discount line in Return from Customer

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0046686)
hgbot   
2012-03-23 14:04   
Repository: erp/devel/pi
Changeset: 013958cc16f61258c62d61819cc09f6c7574ac79
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Fri Mar 23 14:04:21 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/013958cc16f61258c62d61819cc09f6c7574ac79 [^]

issue issue 20010: Error in Create Credit process when there is a discount line in Return from Customer

---
M src/org/openbravo/erpCommon/ad_forms/DocMatchInv.java
---
(0046687)
jecharri   
2012-03-23 14:08   
The last push is for issue 20075
(0046883)
VictorVillar   
2012-03-29 13:53   
Verified
(0047211)
hudsonbot   
2012-04-02 06:11   
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/7814864461ac [^]

Maturity status: Test
(0047213)
hudsonbot   
2012-04-02 06:11   
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/7814864461ac [^]

Maturity status: Test