Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016469Openbravo ERP07. Sales managementpublic2011-03-03 17:272011-04-04 18:43
xabiermerino 
AinhoaPagola 
urgentmajoralways
closedfixed 
5
2.50MP27 
2.50MP282.50MP29 
Core
No
0016469: Error when you reactivate an invoice
If you modify a payment of an invoice completed, the C_Invoice_Post does not delete the payment.

When you update the payment, the column 'isautomaticgenerate' from c_debt_payment takes 'N' as value, this is why the process does not delete it.

- As Openbravo Admin go to Sales Invoice
- Create an invoice
- Complete it
- Go to 'Payment in'
- Delete the description and save
- Reactivate the invoice
- Realize that the process does not delete the payment
No tags attached.
blocks defect 00161222.50MP28 closed AinhoaPagola Error when you reactivate an invoice 
Issue History
2011-03-24 17:11dalsasuaTypedefect => backport
2011-03-24 17:11dalsasuafix_in_branch => 2.50
2011-03-30 12:27AinhoaPagolaNote Added: 0035365
2011-04-01 09:11hgbotCheckin
2011-04-01 09:11hgbotNote Added: 0035439
2011-04-01 09:11hgbotStatusscheduled => resolved
2011-04-01 09:11hgbotResolutionopen => fixed
2011-04-01 09:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/3432182e4a732fc26e158d20dd827bf10caccf95 [^]
2011-04-04 18:43xabiermerinoNote Added: 0035570
2011-04-04 18:43xabiermerinoStatusresolved => closed
2011-04-04 18:43xabiermerinoFixed in Version => 2.50MP29

Notes
(0035365)
AinhoaPagola   
2011-03-30 12:27   
Updating c_debt_payment table sets 'isautomaticgenerate' column to 'N' because the preferences are set this way. There is no default value set for this column.

c_invoice_post function should set this column to 'Y' when creating payments automatically.
(0035439)
hgbot   
2011-04-01 09:11   
Repository: erp/stable/2.50
Changeset: 3432182e4a732fc26e158d20dd827bf10caccf95
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Wed Mar 30 12:38:44 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/3432182e4a732fc26e158d20dd827bf10caccf95 [^]

Fixes Issue 16469. Payments set to automatically generated in c_invoice_post

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0035570)
xabiermerino   
2011-04-04 18:43   
Verified