Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025312Openbravo ERP07. Sales managementpublic2013-12-11 17:392014-05-07 18:11
jecharri 
eduardo_Argal 
immediatemajoralways
closedfixed 
5
 
3.0PR14Q3 
Core
No
0025312: Wrong payment detail distribution when negative order is invoiced using fractionated payment term
Wrong payment detail distribution when negative order is invoiced using fractionated payment term
1. Define Payment Term with 60 days in header and add Line for 50% and 30 days
2. Register Sales Order for any BP. Add line for any product with qty=-1 and price=360
3. Register associated Goods Shipment, using Create Lines From
4. Register associated Sales Invoice, using Create Lines From, and setting fractionated payment terms. Complete and press Add Payment. Realize that details distribution is not correct (if you have a look at database details you will see that only one detail is linked to sales order)

If you follow same process for an order with positive quantity, details are properly distributed
No tags attached.
related to defect 00243233.0MP28 closed jecharri Wrong payment detail distribution when negative order is invoiced using fractionated payment term 
has duplicate defect 00260903.0PR14Q3 closed eduardo_Argal Wrong payment plan details for invoices with a negative amount, split payment terms and an order associated 
related to defect 0036745 closed collazoandy4 Purchase order schedule details is not updated when same purchase order line is invoiced twice and second invoice have a negativ 
Issue History
2013-12-11 17:39jecharriNew Issue
2013-12-11 17:39jecharriAssigned To => jecharri
2013-12-11 17:39jecharriModules => Core
2013-12-11 17:39jecharriTriggers an Emergency Pack => No
2013-12-11 17:40jecharriRelationship addedrelated to 0024323
2014-03-11 16:51jonalegriaesarteResolution time => 1395702000
2014-03-12 10:59jonalegriaesarteTarget Version => PR14Q2
2014-03-31 16:17jonalegriaesarteTarget VersionPR14Q2 => PR14Q3
2014-03-31 16:43jonalegriaesarteResolution time1395702000 => 1397080800
2014-04-02 12:04jonalegriaesarteAssigned Tojecharri => pramakrishnan
2014-04-09 18:37eduardo_ArgalStatusnew => scheduled
2014-04-09 18:37eduardo_ArgalAssigned Topramakrishnan => eduardo_Argal
2014-04-09 18:37eduardo_Argalfix_in_branch => pi
2014-04-09 18:38hgbotCheckin
2014-04-09 18:38hgbotNote Added: 0066280
2014-04-09 18:38hgbotStatusscheduled => resolved
2014-04-09 18:38hgbotResolutionopen => fixed
2014-04-09 18:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/62db1949bccc23a3904a649c6023b9ed0e3aae56 [^]
2014-04-10 10:34eduardo_ArgalRelationship addedhas duplicate 0026090
2014-04-11 11:40ngarciaIssue Monitored: ngarcia
2014-04-11 21:09dmiguelezNote Added: 0066365
2014-04-11 21:09dmiguelezStatusresolved => closed
2014-04-15 09:31ngarciaNote Added: 0066412
2014-05-07 18:11hudsonbotCheckin
2014-05-07 18:11hudsonbotNote Added: 0066909
2017-09-12 09:40aferrazRelationship addedrelated to 0036745

Notes
(0066280)
hgbot   
2014-04-09 18:38   
Repository: erp/devel/pi
Changeset: 62db1949bccc23a3904a649c6023b9ed0e3aae56
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Wed Apr 09 18:38:14 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/62db1949bccc23a3904a649c6023b9ed0e3aae56 [^]

Fixes bug 25312: Wrong payment detail distribution

---
M modules/org.openbravo.advpaymentmngt/src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
---
(0066365)
dmiguelez   
2014-04-11 21:09   
Code Review + Testing Ok
(0066412)
ngarcia   
2014-04-15 09:31   
A modulescript should be created in order to correct the inconsistent data
(0066909)
hudsonbot   
2014-05-07 18: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/02ca2648bcdc [^]
Maturity status: Test