Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013122Openbravo ERP09. Financial managementpublic2010-04-12 13:072010-05-17 09:39
networkb 
vmromanos 
urgentmajoralways
closedfixed 
5
2.40MP12 
 
Core
No
0013122: Purchase invoice payment is not cancelled when it contains withholding
A payment is created with two payments:
*One positive, with withholding
*One negative, same as previous one, with same withholding.

A purchase invoice is created with withholding, and same amount than negative payments. When processing, invoice payment is not cancelled with the negative one.

Note: it has tested in Openbravo ERP 2.40MP12.3 and Openbravo ERP 2.50MP14

Go to Master Data Management > Business Parnter Setup > Withholding.
Create a new record. Enter a name and a rate (IE, 1)
Go to Master Data Management > Business Partner. Search, for McGiver partner.
Go to withholding tab.
Create a new record, and select the previous withholding.
Go to Financial Management > Receivables and Payables > Transactions > Settlement.
Create a new record.
Go to Created payment.
Create a new record, select a BP (IE McGiver), enter as amount, 990, as withholdingamount, 10.
Select the previous withholding and uncheck Receipt.
Create other record, with same BP, amount -990, -10 as withholding, select the previous withholding, and uncheck receipt.
Go to main tab, and process it.
Go to Purchase management > Transactions > Purchase Invoice.
Create a new record.
Select same BP (McGiver), and select the withholding.
Go to Line tab, and create a new one.
Select a product, and enter as unit price,1000.
Select as Tax, Exempt.
Go to header tab, and process it.
Go to Payment tab, and check it.
No tags attached.
blocks defect 0012939 closed vmromanos Purchase invoice payment is not cancelled when it contains withholding 
Issue History
2010-04-26 16:32dalsasuaTypedefect => backport
2010-04-26 16:32dalsasuafix_in_branch => 2.40
2010-05-12 18:54vmromanosAssigned Todalsasua => vmromanos
2010-05-12 18:58vmromanosNote Added: 0027180
2010-05-12 19:01hgbotCheckin
2010-05-12 19:01hgbotNote Added: 0027181
2010-05-12 19:01hgbotStatusscheduled => resolved
2010-05-12 19:01hgbotResolutionopen => fixed
2010-05-12 19:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/a53552130c6baa513f21a51ecf77923e2b7eec75 [^]
2010-05-17 09:39sureshbabuNote Added: 0027352
2010-05-17 09:39sureshbabuStatusresolved => closed

Notes
(0027180)
vmromanos   
2010-05-12 18:58   
The proposed solution for this bug is to allow the inclusion of the withholding (and the withholding amount) when creating the Payment from the Bank Statement line.

@QA: Don't take into account the Steps to reproduce since they are wrong. You just need to check that the payments created from the Bank Statement line contain a withholding and a withholding amount
(0027181)
hgbot   
2010-05-12 19:01   
Repository: erp/stable/2.40
Changeset: a53552130c6baa513f21a51ecf77923e2b7eec75
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Wed May 12 19:02:47 2010 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/a53552130c6baa513f21a51ecf77923e2b7eec75 [^]

Fixed bug 13122: Allow withholding when create payment from Bank

---
M src-db/database/model/functions/C_DEBT_PAYMENT_CREATE.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_PROCESS_PARA.xml
---
(0027352)
sureshbabu   
2010-05-17 09:39   
verified, by creating the payments from the Bank Statement with withholding and a withholding amount