Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014764Openbravo ERPZ. Otherspublic2010-10-05 10:392010-12-09 16:06
psarobe 
eduardo_Argal 
immediatecriticalsometimes
closedfixed 
5
2.50 
 
Advanced Payables and Receivables Mngmt
No
0014764: Under some circunstances when you complete an invoice the system gets blocked
Under some circumstances when you complete an invoice the system gets blocked, in fact, a PL procedure enters in an infinitive loop.

This happens when you create a sales invoice based on a sales order or several sales orders and the sum of the lines plus the taxes is different from the total of the invoice due to round issues.

So when creating the payment plan for the invoices it is not able to assign this round difference to any sales order and it enters in this infinitive loop
1. You create a sales order with 3 lines and taxes with, for example, rate 8.25
2. You create a sales invoice with 2 of the lines and complete. Now you are not able to complete if the there is differences between the total of the sales invoice and the total of the sum of these 2 lines (including taxes) in the sales order

Expected behaviour: You should be able to complete it
No tags attached.
Issue History
2010-10-05 10:39psarobeNew Issue
2010-10-05 10:39psarobeAssigned To => eduardo_Argal
2010-10-06 10:26psarobeStatusnew => scheduled
2010-10-06 10:26psarobefix_in_branch => pi
2010-10-07 13:02hgbotCheckin
2010-10-07 13:02hgbotNote Added: 0031640
2010-10-07 13:02hgbotStatusscheduled => resolved
2010-10-07 13:02hgbotResolutionopen => fixed
2010-10-07 13:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/70d31513073e2905435fce0ad7a196e6ac5f2ad8 [^]
2010-10-21 19:17hgbotCheckin
2010-10-21 19:17hgbotNote Added: 0032082
2010-11-26 11:57psarobeStatusresolved => closed
2010-12-09 16:06anonymoussf_bug_id0 => 3133490

Notes
(0031640)
hgbot   
2010-10-07 13:02   
Repository: erp/pmods/org.openbravo.advpaymentmngt
Changeset: 70d31513073e2905435fce0ad7a196e6ac5f2ad8
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Thu Oct 07 13:01:45 2010 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/70d31513073e2905435fce0ad7a196e6ac5f2ad8 [^]

Fixes bug 0014764: Under some circunstances when you complete an invoice the system gets blocked

---
M src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
---
(0032082)
hgbot   
2010-10-21 19:17   
Repository: erp/pmods/org.openbravo.advpaymentmngt
Changeset: dda0c7d3a56487f4b065bf9a8ab9c0d4be435266
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Thu Oct 21 19:16:20 2010 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/dda0c7d3a56487f4b065bf9a8ab9c0d4be435266 [^]

Related to issue 0014764: Under some circunstances when you complete an invoice the system gets blocked. 0.01 cent rounding problem in orders

---
M src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
---