Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018896Openbravo ERP09. Financial managementpublic2011-09-28 16:022011-11-04 12:49
mirurita 
mirurita 
normalminoralways
closedfixed 
5
 
 
Advanced Payables and Receivables Mngmt
No
0018896: Invoice's Reference for Payment Description configured at org level not taking in account sales/purchase flows
'Invoice's Reference for Payment Description' is configured at organization level.
It allows to select whether the invoice document number or supplier reference number will be used for creating the payment description.
It is used also when generating the bank instructions when processing the remittance.

If you select for example 'Supplier reference' for a specific organization when you create a payment using this organization this payment will include the supplier reference although you are in sales flow.

Related issues: 17756, 18579, 17991
1) Go to Organization window and select F&B US, Inc.
2) Go to Information tab
3) Select in Invoice's Reference for Payment Description combo Supplier reference and save.
4) Create a new Sales Invoice for F&B US, Inc. organization.
5) Create a Cuaderno 19 remittance.
6) Include previously created invoice.
7) Process the remittance (no grouping).
8) See created line in Instructions tab

Realize that for a sales invoice the reference number is used in the description.

does not make sense in sales flow.
Two possible solutions:
1) Create separate fields in Organization || Information tab: one for sales an other for purchase.
2) Assume that in sales flow that always the Document Number is the 'reference' which drives the flow. Change FIN_Utility.getDesiredDocumentNo method.
If we go for the second option, I think the label of the field should change: 'Purchase Invoice's Reference for Payment Description'
No tags attached.
blocks defect 0018640 closed mirurita Invoice's Reference for Payment Description configured at org level not taking in account sales/purchase flows 
Issue History
2011-10-27 12:08miruritaTypedefect => backport
2011-10-27 12:08miruritafix_in_branch => 2.50
2011-10-27 13:06hgbotCheckin
2011-10-27 13:06hgbotNote Added: 0042151
2011-10-27 13:06hgbotStatusscheduled => resolved
2011-10-27 13:06hgbotResolutionopen => fixed
2011-10-27 13:06hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/0dea693db7648a85859ae1bc3d859a06e68b633e [^] => http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/69b660d2cc272cdfe38cda2d8b757554e09c6313 [^]
2011-11-04 12:49maiteNote Added: 0042537
2011-11-04 12:49maiteStatusresolved => closed

Notes
(0042151)
hgbot   
2011-10-27 13:06   
Repository: erp/pmods/org.openbravo.advpaymentmngt
Changeset: 69b660d2cc272cdfe38cda2d8b757554e09c6313
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Thu Oct 27 13:05:09 2011 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.advpaymentmngt/rev/69b660d2cc272cdfe38cda2d8b757554e09c6313 [^]

Fixes issue 18896: Invoice's Reference for Payment Description problem.
Invoice's Reference for Payment Description configured at org level not taking in account sales/purchase flows.
If you select for example 'Supplier reference' for a specific organization when you create a payment using this
organization this payment will include the supplier reference although you are in sales flow.
Fix: Assume that in sales flow that always the Document Number is the 'reference' which drives the flow.
Label changed to Purchase Invoice's Reference for Payment Description

---
M src-db/database/model/functions/APRM_GEN_PAYMENTSCHEDULE_INV.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java
---
(0042537)
maite   
2011-11-04 12:49   
verified