Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028156Openbravo ERP07. Sales managementpublic2014-11-12 12:442014-12-30 23:27
egoitz 
reinaldoguerra 
normalmajoralways
closedfixed 
5
 
3.0PR15Q1pi 
umartirena
Core
No
0028156: When completing an invoice with grandtotal 0, the ispaid columns is filled with Y but the Finalsettlement is not filled
When completing an invoice with grandtotal 0, the ispaid columns is filled with Y but the Finalsettlement is not filled.
-Create a sales invoice header-
-create a line with 1 qty and price 0-.
-Complete
*See that the ispaid columns is filled=Y but Finalsettlement columns is still null.

On that status the invoice is processed by the fin_paymentmonitorprocess on each execution.
that affects the performance.
Fill the Finalsettlement column with the date where the complete process is executed
No tags attached.
Issue History
2014-11-12 12:44egoitzNew Issue
2014-11-12 12:44egoitzAssigned To => dmiguelez
2014-11-12 12:44egoitzModules => Core
2014-11-12 12:44egoitzTriggers an Emergency Pack => No
2014-11-12 12:45egoitzResolution time => 1417647600
2014-11-12 12:45egoitzTarget Version => 3.0PR15Q1
2014-11-12 12:45egoitzAssigned Todmiguelez => AtulOpenbravo
2014-12-08 04:20reinaldoguerraAssigned ToAtulOpenbravo => reinaldoguerra
2014-12-08 04:20reinaldoguerraStatusnew => scheduled
2014-12-09 13:59reinaldoguerraNote Added: 0072362
2014-12-16 18:47hgbotCheckin
2014-12-16 18:47hgbotNote Added: 0072572
2014-12-16 18:47hgbotStatusscheduled => resolved
2014-12-16 18:47hgbotResolutionopen => fixed
2014-12-16 18:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2661c5291828b36aefdc2b3ee09b245b26aee406 [^]
2014-12-16 18:48umartirenaReview Assigned To => umartirena
2014-12-16 18:48umartirenaNote Added: 0072573
2014-12-16 18:48umartirenaStatusresolved => closed
2014-12-16 18:48umartirenaFixed in Version => pi
2014-12-30 23:27hudsonbotCheckin
2014-12-30 23:27hudsonbotNote Added: 0073226

Notes
(0072362)
reinaldoguerra   
2014-12-09 13:59   
Test plan used:
1- Login into Openbravo ERP
2- Go to sales invoice window and create a new header
3- Create a line with qty 1 and price 0, for example leaving empty product selector field.
4- Complete it
5- Check table c_invoice and note that ispaid field is set to Y and finalsettlement takes the actual date which is when the document is being completed.
(0072572)
hgbot   
2014-12-16 18:47   
Repository: erp/devel/pi
Changeset: 2661c5291828b36aefdc2b3ee09b245b26aee406
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Mon Dec 08 18:15:02 2014 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/2661c5291828b36aefdc2b3ee09b245b26aee406 [^]

Fixed bug 28156: Completing invoice with 0 grandtotal, finalsettlement is null.

Extension point executed when completing invoices stored procedure is finished, was modified to not only update isPaid field as Y, but also to fill the finalsettlement with the current date which is when the document with grandtotal as 0, is being completed.
Now when completing an invoice with grandtotal as 0, also the finalsettlement field will be filled, avoiding the invoice is processed by the fin_paymentmonitorprocess unnecessarily. This change affects purchase and sales flows.

---
M modules/org.openbravo.advpaymentmngt/src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
---
(0072573)
umartirena   
2014-12-16 18:48   
Code Review and Testing Done.
(0073226)
hudsonbot   
2014-12-30 23:27   
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/6525fe229e06 [^]
Maturity status: Test