Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035655Openbravo ERP09. Financial managementpublic2017-03-30 14:152017-03-30 14:18
aferraz 
Triage Omni OMS 
normalminoralways
newopen 
30Professional Appliance
 
 
Core
No
0035655: Do not display Credit to Use grid in Add Payment in case negative payments
Do not display Credit to Use grid in Add Payment in case negative payments.
1. Register Reversed Purchase Invoice for "Bebidas Alegres". Add line for any product, set qty=-10 and process.
2. Register Payment Out for "Bebidas Alegres" setting Generated Credit=1000. Process payment
3. Register Payment Out for "Bebidas Alegres". Run "Add details" process, select available credit and select only negative invoice line. Choose option "Refund amount to customer" in overpayment action combo and try to process payment.
Error "It is not possible to use credit in negative payments. Please, unselect credit records." will be raised

In order to improve user experience we should avoid selecting credit in this case, instead of raising an error.
Using credit in negative payments is not a supported action.
To improve user experience we should avoid selecting credit in this case, instead of raising an error.

When ever we process a purchase or sales invoice we should not display Select Credit Payments popup in case of negative payment.

When ever we change the amount in Add Payment process to a negative amount, we should unselect every record in Credit to Use grid and change the value of credit_to_use_display_logic to false in order to hide Credit to Use grid.

When ever we change the amount in Add Payment process to a positive amount and in case business partner has available credit, we should change the value of credit_to_use_display_logic to true in order to display Credit to Use grid.
No tags attached.
related to defect 0035054 closed AtulOpenbravo It is not possible to pay a negative purchase invoice using credit and selecting "Refund amount to customer" 
Issue History
2017-03-30 14:15aferrazNew Issue
2017-03-30 14:15aferrazAssigned To => Triage Finance
2017-03-30 14:15aferrazModules => Core
2017-03-30 14:15aferrazTriggers an Emergency Pack => No
2017-03-30 14:17aferrazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14922#r14922
2017-03-30 14:17aferrazProposed Solution updated
2017-03-30 14:18aferrazRelationship addedrelated to 0035054

There are no notes attached to this issue.