Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030449Openbravo ERPZ. Otherspublic2015-07-29 12:542015-08-20 23:16
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
 
vmromanos
Core
No
0030449: Automatic distribution of the amount in Add Details window cannot be disabled
Automatic distribution of the amount in Add Details window cannot be disabled
As group admin role:
   Generate a credit to a business partner
   Generate two invoices for that business partner. Do not use credit when completing them
   Create a new payment in for that business partner, select one of the invoices, reduce the amount to be paid and then select the credit to use
   Check the credit amount is distributed among the two invoices
Allow the user to choose if the automatic distribution should be performed or not (e.g. by a preference)
No tags attached.
Issue History
2015-07-29 12:54ngarciaNew Issue
2015-07-29 12:54ngarciaAssigned To => Triage Finance
2015-07-29 12:54ngarciaModules => Core
2015-07-29 12:54ngarciaTriggers an Emergency Pack => No
2015-07-29 13:00ngarciaTypefeature request => design defect
2015-07-29 13:00ngarciaSummaryIt would be fine if the automatic distribution of the amount in Add Details window should be disabled => Automatic distribution of the amount in Add Details window cannot be disabled
2015-07-29 13:00ngarciaDescription Updatedbug_revision_view_page.php?rev_id=9114#r9114
2015-07-29 13:01ngarciaTypedesign defect => defect
2015-07-29 15:26ngarciaProposed Solution updated
2015-07-29 15:26ngarciaIssue Monitored: networkb
2015-07-29 15:38jpcalventeIssue Monitored: jpcalvente
2015-08-03 14:09ngarciaResolution time => 1441663200
2015-08-04 06:08AtulOpenbravoAssigned ToTriage Finance => AtulOpenbravo
2015-08-04 06:08AtulOpenbravoStatusnew => scheduled
2015-08-06 12:53AtulOpenbravoNote Added: 0079219
2015-08-07 12:25hgbotCheckin
2015-08-07 12:25hgbotNote Added: 0079248
2015-08-07 12:25hgbotStatusscheduled => resolved
2015-08-07 12:25hgbotResolutionopen => fixed
2015-08-07 12:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3aae880a7aa2277208ba5fcfaf41a94c2113a1b4 [^]
2015-08-07 12:25hgbotCheckin
2015-08-07 12:25hgbotNote Added: 0079249
2015-08-07 12:39vmromanosReview Assigned To => vmromanos
2015-08-07 12:39vmromanosNote Added: 0079250
2015-08-07 12:39vmromanosStatusresolved => closed
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079533
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079534

Notes
(0079219)
AtulOpenbravo   
2015-08-06 12:53   
Test Plan
- Login as F&B International Group Admin Role.
- Go to Preferences and add a new record. From Property List select property name "Add Payment: Automatically distribute amounts" and set value as N.
- Log out and Log in again.

- As a F&B International Group Admin.
- Generate a credit to a business partner.
- Generate two invoices for that business partner. Do not use credit when completing them.
- Create a new payment in for that business partner, select one of the invoices, reduce the amount to be paid and then select the credit to use.
- Check the credit amount is not distributed among the two invoices any more.

Alternate Test Plan
- Log in as F&B International Group Admin
- In preferences check whether preference for "Add Payment: Automatically distribute Amount" exists. If yes then either delete it or make sure that value of preference is set as Y.
- Log out and Log in as F&B International Group Admin

- Generate a credit to a business partner.
- Generate two invoices for that business partner. Do not use credit when completing them.
- Create a new payment in for that business partner, select one of the invoices, reduce the amount to be paid and then select the credit to use.
- Check the credit amount is distributed among the two invoices.
(0079248)
hgbot   
2015-08-07 12:25   
Repository: erp/devel/pi
Changeset: 3aae880a7aa2277208ba5fcfaf41a94c2113a1b4
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Aug 06 16:14:03 2015 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/3aae880a7aa2277208ba5fcfaf41a94c2113a1b4 [^]

Fixes Issue 30449:Automatic distribution of the amount in Add Details window
cannot be disabled

A preference APRM_AutoDistributeAmt - Add Payment: Automatically distribute
amounts. In disribute amount method before doing auto distribution this
preference is checked. If it is not set or is set as 'Y' then only distribution
of amount will take place else not.

To disable distribute functionality user need to set this preference to 'N'.It
is made available in the property list.

---
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_REF_LIST.xml
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0079249)
hgbot   
2015-08-07 12:25   
Repository: erp/devel/pi
Changeset: 134c828d9f0af406bdc4d036be35f5506f691926
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Fri Aug 07 12:23:06 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/134c828d9f0af406bdc4d036be35f5506f691926 [^]

Related to issue 30449: code review improvements
If clause checks autoDistributeAmt is not 'N' to follow same logic as for APRM_ShowNoDistributeMsg.
autoDistributeAmt is directly assigned in the variable definition.

---
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
(0079250)
vmromanos   
2015-08-07 12:39   
Code review + testing OK
(0079533)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test
(0079534)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test