Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0009487 | Openbravo ERP | 07. Sales management | public | 2009-06-11 18:48 | 2009-06-17 09:40 | |||||||
Reporter | networkb | |||||||||||
Assigned To | rafaroda | |||||||||||
Priority | immediate | Severity | critical | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 30 | OS Version | |||||||||
Product Version | 2.40MP4 | |||||||||||
Target Version | Fixed in Version | 2.40MP6 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0009487: Is not possible to complete a invoice using a different currency if it has not conversion to the date obtained of payment terms | |||||||||||
Description | Is not possible to complete a invoice using a different currency if it has not conversion to the date obtained of payment terms. | |||||||||||
Steps To Reproduce | -Create a price list with a currency different than the standard. -This currency has a conversion rate with the standard to the date of today but the conversion is not available in the future (i.e. in one or two months) -Create a sales invoice with the price list created before. -select payment terms "two month" -Create a line. -Complete the invoice line and you get a error. -If you reactivate the invoice and change the payment terms to immediate the invoice is completed properly. | |||||||||||
Proposed Solution | * The problem is in C_BP_SOCREDITUSED_REFRESH function which updates the credit used by the business partner. * This function is called both from C_INVOICE_POST and C_SETTLEMENT_POST. * In order to make the amount conversion, the date taken by this function is the debt payment planned (due) date, which is wrong because customers burn credit in the moment that the document (invoice or settlement) is completed, not when the payment is done (that can happen far in the future or even never happen). * The date to be taken by this function is the one that generates the debt payment: if it is an invoice, take the invoice date; if it is a settlement, take the settlement transaction date (if it does not come from an invoice, otherwise take the date invoiced). For this, a new column DOCDATE needs to be added to C_DEBT_PAYMENT_V view. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2009-06-15 18:41 | rafaroda | Type | defect => backport | |||||||||
2009-06-15 18:41 | rafaroda | fix_in_branch | => 2.40 | |||||||||
2009-06-16 16:45 | hgbot | Checkin | ||||||||||
2009-06-16 16:45 | hgbot | Note Added: 0017355 | ||||||||||
2009-06-16 16:45 | hgbot | Status | scheduled => resolved | |||||||||
2009-06-16 16:45 | hgbot | Resolution | open => fixed | |||||||||
2009-06-16 16:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.40/rev/9b9784371aa4a593b2459f3460888c5e4727fb0f [^] | |||||||||
2009-06-16 16:45 | rafaroda | Note Added: 0017356 | ||||||||||
2009-06-16 22:52 | psarobe | Status | resolved => closed | |||||||||
2009-06-17 09:40 | psarobe | Fixed in Version | => 2.40MP6 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|