Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024207Openbravo ERP09. Financial managementpublic2013-06-27 10:082013-06-28 22:51
psarobe 
Sandrahuguet 
urgentmajoralways
closedfixed 
5
 
 
Core
No
0024207: When the grand total of a sales invoice is 0 the document is disabled for accounting. This is wrong
There is a user case where it is needed to post the sales invoice. This case is related to gift cards and vouchers feature. In most of the cases the amount of those invoices is zero:

Product A 10 USD
Gift card -10 USD

Total amount: 0 USD

But still you want post the sales invoice
1. Create a sales invoice with two lines
2. One with amount 10 USD
3. Another amount of -10 USD
4. Total amount: 0
5. Complete the invoice
6. Post the document

Notice that a warning message alerts you that when the amount is zero the document is disabled for accounting
No tags attached.
Issue History
2013-06-27 10:08psarobeNew Issue
2013-06-27 10:08psarobeAssigned To => dmiguelez
2013-06-27 10:08psarobeModules => Core
2013-06-27 10:08psarobeTriggers an Emergency Pack => No
2013-06-27 15:47SandrahuguetAssigned Todmiguelez => Sandrahuguet
2013-06-27 15:47SandrahuguetStatusnew => scheduled
2013-06-27 15:47Sandrahuguetfix_in_branch => pi
2013-06-27 18:29hgbotCheckin
2013-06-27 18:29hgbotNote Added: 0059716
2013-06-27 18:29hgbotStatusscheduled => resolved
2013-06-27 18:29hgbotResolutionopen => fixed
2013-06-27 18:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cf1b9c10c9c3c3c992dadf314c4ae0ea47a399cf [^]
2013-06-28 11:34dmiguelezNote Added: 0059768
2013-06-28 11:34dmiguelezStatusresolved => closed
2013-06-28 22:51hudsonbotCheckin
2013-06-28 22:51hudsonbotNote Added: 0059786

Notes
(0059716)
hgbot   
2013-06-27 18:29   
Repository: erp/devel/pi
Changeset: cf1b9c10c9c3c3c992dadf314c4ae0ea47a399cf
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Thu Jun 27 18:30:12 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cf1b9c10c9c3c3c992dadf314c4ae0ea47a399cf [^]

Fixed bug 24207 ability to post a invoice when the grand total is 0

---
M src/org/openbravo/erpCommon/ad_forms/DocInvoice.java
---
(0059768)
dmiguelez   
2013-06-28 11:34   
Code Review + Testing Ok
(0059786)
hudsonbot   
2013-06-28 22:51   
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/afdf98dd7db9 [^]

Maturity status: Test