| Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0045143 | Openbravo ERP | 09. Financial management | public | 2020-09-25 12:20 | 2020-10-07 12:06 | |||||||
| Reporter | inigo_lerga | |||||||||||
| Assigned To | inigo_lerga | |||||||||||
| Priority | normal | Severity | major | Reproducibility | always | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | PR21Q1 | ||||||||||
| Merge Request Status | approved | |||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | ||||||||||||
| Modules | Advanced Payables and Receivables Mngmt | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0045143: Outstanding Amount not updated when closing Sales Order in Oracle | |||||||||||
| Description | When a Sales Order is booked and has a prepayment, when the order is closed, the outstanding amount in the Payment Plan is not updated with the negative received amount, which is wrong. | |||||||||||
| Steps To Reproduce | 1. Register Sales Order with total amount 100 2. Run Add Details process to register prepayment of 100 3. Close the order. Payment plan info will not be properly updated. | |||||||||||
| Proposed Solution | In APRM_GEN_PAYMENTSCHEDULE_ORD.xml, the following query retreives no records due to the situation generated with the stepts to reproduce, which causes an Exception due to Oracle's interpretation of SELECT INTO statements. --Get fin_payment_scheduledetail not related to payments nor invoices. SELECT fin_payment_scheduledetail_id, amount INTO v_finpaymentscheduledetailid, v_psd_amt FROM fin_payment_scheduledetail WHERE fin_payment_schedule_order = v_finpaymentscheduleid AND fin_payment_schedule_invoice IS NULL AND fin_payment_detail_id IS NULL; Proposed solution is to add a "try-catch" block around that query. | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships | 
 | |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2020-09-25 12:20 | inigo_lerga | New Issue | ||||||||||
| 2020-09-25 12:20 | inigo_lerga | Assigned To | => inigo_lerga | |||||||||
| 2020-09-25 12:20 | inigo_lerga | OBNetwork customer | => No | |||||||||
| 2020-09-25 12:20 | inigo_lerga | Modules | => Advanced Payables and Receivables Mngmt | |||||||||
| 2020-09-25 12:20 | inigo_lerga | Triggers an Emergency Pack | => No | |||||||||
| 2020-09-25 12:20 | inigo_lerga | Status | new => scheduled | |||||||||
| 2020-09-25 12:22 | inigo_lerga | Note Added: 0123378 | ||||||||||
| 2020-09-25 12:26 | inigo_lerga | Relationship added | related to 0045081 | |||||||||
| 2020-09-25 13:01 | hgbot | Merge Request Status | => open | |||||||||
| 2020-09-25 13:01 | hgbot | Note Added: 0123380 | ||||||||||
| 2020-10-07 12:06 | hgbot | Merge Request Status | open => approved | |||||||||
| 2020-10-07 12:06 | hgbot | Resolution | open => fixed | |||||||||
| 2020-10-07 12:06 | hgbot | Status | scheduled => closed | |||||||||
| 2020-10-07 12:06 | hgbot | Fixed in Version | => PR21Q1 | |||||||||
| 2020-10-07 12:06 | hgbot | Note Added: 0123596 | ||||||||||
| 2020-10-07 12:06 | hgbot | Note Added: 0123597 | ||||||||||
| Notes | |||||
|  | |||||
| 
 | 
 | ||||
|  | |||||
| 
 | 
 | ||||
|  | |||||
| 
 | 
 | ||||
|  | |||||
| 
 | 
 | ||||