Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013215Openbravo ERPZ. Otherspublic2010-05-04 14:472010-12-09 16:01
sureshbabu 
eduardo_Argal 
highcriticalalways
closedfixed 
5
2.50 
2.50 
Advanced Payables and Receivables Mngmt
No
0013215: Automatic payment/receipt option not working as expected when advance payment is made for a purchase order/sales order
Automatic payment/receipt option not working as expected when advance payment is made for a sales/purchase order and invoice is generated for the above crated sales/purchase order with payment method having automatic payment/receipt option is selected.
1) create and complete a purchase order for amount (22.00 euros)

2) Generate a advance payment document for amount (10.00 euros) for the above created sales order using make payment or Payment proposal option

3) Try to create a purchase invoice with payment method defined as auto payment option, using the above created purchase order lines.

complete the invoice, and verify the details under payment monitor section in header page.

Actual: Paid amount wrongly shows as 32.00 euros instead of 22.00 euros.

Also navigate to Make payment window and verify the newly created payment document it is generated for 22.00 euros instead of 12.00 euros (since 10.00 is already used in advance payment document i am expecting only 12.00 euros to be used here.)
 
No tags attached.
related to defect 0013289 closed eduardo_Argal Automatic payment/receipt option not working as expected when advance payment is made for a purchase order/sales order 
jpg Invalid payment details when order is prepaid.JPG (118,529) 2010-05-05 07:40
https://issues.openbravo.com/file_download.php?file_id=2524&type=bug
jpg
Issue History
2010-05-04 14:47sureshbabuNew Issue
2010-05-04 17:12eduardo_ArgalNote Added: 0026931
2010-05-04 17:12eduardo_ArgalStatusnew => closed
2010-05-04 17:12eduardo_ArgalResolutionopen => unable to reproduce
2010-05-05 07:36sureshbabuAssigned To => eduardo_Argal
2010-05-05 07:36sureshbabuNote Added: 0026948
2010-05-05 07:36sureshbabuStatusclosed => new
2010-05-05 07:36sureshbabuResolutionunable to reproduce => open
2010-05-05 07:40sureshbabuFile Added: Invalid payment details when order is prepaid.JPG
2010-05-05 07:42sureshbabuNote Edited: 0026948bug_revision_view_page.php?bugnote_id=0026948#r318
2010-05-08 20:42hgbotCheckin
2010-05-08 20:42hgbotNote Added: 0027068
2010-05-08 20:42eduardo_ArgalStatusnew => scheduled
2010-05-08 20:42eduardo_Argalfix_in_branch => pi
2010-05-08 20:43eduardo_ArgalNote Added: 0027069
2010-05-08 20:43eduardo_ArgalStatusscheduled => resolved
2010-05-08 20:43eduardo_ArgalResolutionopen => fixed
2010-05-10 13:13sureshbabuNote Added: 0027098
2010-05-10 13:13sureshbabuStatusresolved => new
2010-05-10 13:13sureshbabuResolutionfixed => open
2010-05-10 19:05hgbotCheckin
2010-05-10 19:05hgbotNote Added: 0027114
2010-05-10 19:05hgbotStatusnew => resolved
2010-05-10 19:05hgbotResolutionopen => fixed
2010-05-10 19:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/449acf2d3194b9984fd6dbed6b72dcd5109c3f3b [^]
2010-05-11 08:49sureshbabuNote Added: 0027121
2010-05-11 08:49sureshbabuStatusresolved => closed
2010-05-11 08:49sureshbabuFixed in Version => 2.50
2010-05-11 10:45sureshbabuRelationship addedrelated to 0013289
2010-12-09 16:01anonymoussf_bug_id0 => 3133173

Notes
(0026931)
eduardo_Argal   
2010-05-04 17:12   
works for me
(0026948)
sureshbabu   
2010-05-05 07:36   
(edited on: 2010-05-05 07:42)
Please revisit this issue, i have once again retested this issue, i am still finding this issue presists, kindly educate me if my understanding about the functionality is wrong. Also i have added screen shot with my comments.

Note: i have retested this issue, after updating my context with the latest change sets.

(0027068)
hgbot   
2010-05-08 20:42   
Repository: erp/pmods/org.openbravo.advpaymentmngt
Changeset: 3e89bcbb0e97c948cda1baeefa0a5e7602022d07
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Sat May 08 20:41:27 2010 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/3e89bcbb0e97c948cda1baeefa0a5e7602022d07 [^]

Fuxes issue 0013215: Automatic payment/receipt option not working

---
M src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
---
(0027069)
eduardo_Argal   
2010-05-08 20:43   
changeset: 311:3e89bcbb0e97
tag: tip
user: Eduardo Argal Guibert <eduardo.argal@openbravo.com>
date: Sat May 08 20:41:27 2010 +0200
summary: Fuxes issue 0013215: Automatic payment/receipt option not working
(0027098)
sureshbabu   
2010-05-10 13:13   
@Edu,

1) create and complete a purchase order for amount (22.00 euros)

2) Generate a advance payment document for amount (10.00 euros) for the above created sales order using make payment or Payment proposal option (PM1: 10euros)

3) Try to create a purchase invoice with payment method defined as auto payment & auto withdrawn option, using the above created purchase order lines.

complete the invoice a new payment document (PM2) created automatically and verify the details under payment monitor section in header page.
"payment complete" check box rightly checked

Issue here is : When i navigate to Make payment window and verify the newly created payment document(PM2) it is generated for 22.00 euros instead of 12.00 euros (since 10.00 is already used paid using the payment document (PM1: 10euros) which is created through advance payment document. i am expecting only 12.00 euros to be used here.)
(0027114)
hgbot   
2010-05-10 19:05   
Repository: erp/pmods/org.openbravo.advpaymentmngt
Changeset: 449acf2d3194b9984fd6dbed6b72dcd5109c3f3b
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Mon May 10 19:04:26 2010 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/449acf2d3194b9984fd6dbed6b72dcd5109c3f3b [^]

Fixed issue 13215.Reformatted code of APRM_GEN_PAYMENTSCHEDULE_INV.

---
M src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
---
(0027121)
sureshbabu   
2010-05-11 08:49   
Verified working fine