|View Issue Details|
|Type||Category||Severity||Reproducibility||Date Submitted||Last Update|
|defect||[Openbravo ERP] Z. Others||major||always||2017-11-07 12:56||2018-02-22 17:24|
|Assigned To||Triage Finance|
|Priority||urgent||Resolution||fixed||Fixed in Version||3.0PR18Q1|
|Status||closed||Fix in branch||Fixed in SCM revision||5e48183608e8|
|OS||Linux 32 bit||Database||Oracle||Java version||1.6|
|OS Version||Ubuntu 8.04.1||Database version||22.214.171.124.0||Ant version||1.7.0|
|Product Version||SCM revision|
|Review Assigned To||dmiguelez|
|Regression introduced in release|
|Regression introduced by commit|
|Triggers an Emergency Pack||No|
0037244: Credit information do not updated if a payment containing credit info is reactivated.
|Description||Credit information do not updated if a payment containing credit info is reactivated.|
|Steps To Reproduce||In F&B España create a new business partner with basic setup.|
Go to payment in window and create a new payment for this BP with below information:
Amount = 10.00
Press Add details and once in Add Details window, select the option "Leave the credit to be used later". Press Done.
Go to Sales Invoice window and create an invoice for this BP for an amount of 500.00. While completing do not use the credit available.
Go to payment in window and create a new one for this BP, enter an amount of 1000.00. Press Add Details.
Select the invoice and the credit. Select the option "Leave the credit to be used later". Press Done.
Once done, reactivate and delete payment lines. Press Ok.
In the same payment enter once again an amount of 1000.00
Press Add details.
Verify that the credit is not there anymore, and that is not correct.
Navigate to the payment in which the credit was generated and verify the credit is already used, and that is not correct.
|Proposed Solution||If a payment that includes credit is reactivated, credit info needs to be updated based on that, therefore the credit is still generated credit and not used credit.|
|Tags||No tags attached.|
edited on: 2017-11-13 19:22
In F&B España create a new business partner with basic setup.
- Go to payment in window and create a new credit payment for this BP with amount = 10.00, Press Add details and once in Add Details window, select the option "Leave the credit to be used later". Press Done.
- Go to Sales Invoice window and create an invoice for this BP for an amount of 500.00. While completing do not use the credit available.
- Go to payment in window and create a new one for this BP, enter an amount of 400.00. Press Add Details. Select the invoice and the credit payment. Select the option "Process Received Payments". Press Done.
- Realize that Used Credit amount is set as 10. Used Credit Source Tab shows the credit payment used information with amount 10.
- Navigate to Credit Payment, check that used credit is set to 10.
- Reactivate the above payment (which consumed the credit payment of amount 10) with Reactivate and Delete Lines option.
- Realize that Used Credit Source Tab is empty.
- Navigate to Credit Payment and realize that Used Credit is set back to 0 again.
- In the same payment that was reactivated enter once again an amount of 300.00
Press Add details. Verify that the credit payment appears in the credit to use grid.
edited on: 2017-11-16 12:17
It will not be possible to use credit up to the amount being paid. Therefore, a payment can not use existing credit to generate more credit in the same payment if the amount being paid is already covered.
For instance if we do have a credit of 100.00 and we need to pay an invoice of 500.00, and the payment in amount is 450.00; it will only be possible to use 50.00 of that credit.
A payment could only generate or consume credit but never both in the same payment.
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Nov 09 06:16:13 2017 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/5e48183608e87d1ee11505e492a188e8a187050c [^]
Fixes Issue 37209, Fixes Issue 37244: Used credit field is not updated
when credit is used in the same payment other credit is generated
and Credit information do not updated if a payment containing credit
info is reactivated.
** Reset usedCredit when traversing through the selected credit payment
Whenever there is sufficient payment amount to fully pay the invoice
and user still selects credit payments, discard the selection of credit
payment in such cases as credit is not actually being used.
** Set credit payment description only in case it is actually consumed
|Code Review + Testing Ok|
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/c81e0d3cbab5 [^]
Maturity status: Test
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Nov 21 09:17:28 2017 +0530
URL: http://code.openbravo.com/tools/automation/int/rev/1ccac4a1255ef61ccf2eb2e36135e39d39f49bb1 [^]
Related to issue 37209, related to issue 37244:Added some automated tests
|2017-11-07 12:56||psanjuan||New Issue|
|2017-11-07 12:56||psanjuan||Assigned To||=> Triage Finance|
|2017-11-07 12:56||psanjuan||Modules||=> Core|
|2017-11-07 12:56||psanjuan||Triggers an Emergency Pack||=> No|
|2017-11-07 13:06||psanjuan||Steps to Reproduce Updated||View Revisions|
|2017-11-07 13:06||psanjuan||Proposed Solution updated|
|2017-11-07 13:06||psanjuan||Relationship added||related to 0037209|
|2017-11-07 13:09||ngarcia||Issue Monitored: ngarcia|
|2017-11-07 14:07||ngarcia||Resolution time||=> 1511391600|
|2017-11-10 13:13||dmiguelez||Status||new => scheduled|
|2017-11-13 19:21||AtulOpenbravo||Note Added: 0100504|
|2017-11-13 19:22||AtulOpenbravo||Note Edited: 0100504||View Revisions|
|2017-11-16 12:16||dmiguelez||Note Added: 0100546|
|2017-11-16 12:17||dmiguelez||Note Edited: 0100546||View Revisions|
|2017-11-17 12:52||hgbot||Note Added: 0100584|
|2017-11-17 12:52||hgbot||Status||scheduled => resolved|
|2017-11-17 12:52||hgbot||Resolution||open => fixed|
|2017-11-17 12:52||hgbot||Fixed in SCM revision||=> http://code.openbravo.com/erp/devel/pi/rev/5e48183608e87d1ee11505e492a188e8a187050c [^]|
|2017-11-17 13:02||dmiguelez||Review Assigned To||=> dmiguelez|
|2017-11-17 13:02||dmiguelez||Note Added: 0100586|
|2017-11-17 13:02||dmiguelez||Status||resolved => closed|
|2017-11-17 13:02||dmiguelez||Fixed in Version||=> 3.0PR18Q1|
|2018-01-03 12:39||hudsonbot||Note Added: 0101436|
|2018-02-22 17:24||hgbot||Note Added: 0102635|
|Copyright © 2000 - 2009 MantisBT Group|