Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036124
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Remittanceminoralways2017-05-29 12:412017-06-19 16:51
ReporterpsanjuanView Statuspublic 
Assigned Tononofrancisco 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiond675cb9dedd4
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionProfessional ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned Toaferraz
Regression introduced in release
Summary

0036124: Accounting information should be grouped by invoice when posting a remittance.

DescriptionAccounting information should be grouped by invoice when posting
Steps To ReproduceInstall remittance module and apply its datase to F&B España organization.

Go to Remittance type and select "Printable Remittance".

Fill in Accounting information for both General Ledger (EUR and USD ones).

Go to Financial Account window, and select "Cuenta de Banco". Go to Payment Method tab, and select "Remittance" payment method.

Enter a purchase order for Bebidas Alegres business partner. Select any product and enter below data:
- Ordered Qty = 5
- price = 1.00
- tax rate = Compras exentas.
Book the order.

Enter another purchase order for Bebidas Alegres business partner. Select any product and enter below data:
- Ordered Qty = 30
- price = 1.00
- tax rate = Compras exentas.
Book the order.

Go to Purchase Invoice window, and create a new one for Bebidas Alegres business partner. Use Create Lines From to select just created order lines. Change paymento method to "Remittance". Complete and Post the invoice. Take note of the due date = 28-06-2017.

Go to Remittance window and create a new one for F&B España. Enter an expected date of 30-06-2017.
Click on "Select Orders or Invoices". Once in that new window, select "Payment Out" in the field "Transaction Type" and select the purchase invoice just created for an expected amount = 35.00. Press Process.

Verify that two lines are shown. Click on Process.

No matter which option is selected to process the remittance (i.e. group by business partner), remittance posting "details" are split in two, one for each order.

See image attached.
Proposed SolutionCorrect posting details should be:

35.00 (40000) DEBIT
35.00 (43120) CREDIT
TagsNo tags attached.
Attached Filesjpg file icon Issue_36124.jpg [^] (22,615 bytes) 2017-05-29 12:54


jpg file icon Issue_36124_Details.jpg [^] (12,117 bytes) 2017-05-29 12:54

- Relationships Relation Graph ] Dependency Graph ]
depends on defect 0034432 closedcollazoandy4 Openbravo ERP Accounting information should be grouped by invoice when posting payment/transaction/reconciliation 
causes defect 0038143 closedAtulOpenbravo Modules NullPointerException when posting a remittance that includes an invoice with more than two orders 

-  Notes
(0097063)
nonofrancisco (developer)
2017-05-31 19:52
edited on: 2017-05-31 20:12

Install remittance module and apply its datase to F&B España organization.

Go to Remittance type and select "Printable Remittance".

Fill in Accounting information for both General Ledger (EUR and USD ones).

Go to Financial Account window, and select "Cuenta de Banco". Go to Payment Method tab, and select "Remittance" payment method.

Enter a purchase order for Bebidas Alegres business partner. Select any product and enter below data:
- Ordered Qty = 5
- price = 1.00
- tax rate = Compras exentas.
Book the order.

Enter another purchase order for Bebidas Alegres business partner. Select any product and enter below data:
- Ordered Qty = 30
- price = 1.00
- tax rate = Compras exentas.
Book the order.

Go to Purchase Invoice window, and create a new one for Bebidas Alegres business partner. Use Create Lines From to select just created order lines. Change paymento method to "Remittance". Complete and Post the invoice. Take note of the due date = 28-06-2017.

Go to Remittance window and create a new one for F&B España. Enter an expected date of 30-06-2017.
Click on "Select Orders or Invoices". Once in that new window, select "Payment Out" in the field "Transaction Type" and select the purchase invoice just created for an expected amount = 35.00. Press Process.

Verify that two lines are shown. Click on Process.

Post the document

Verify Posting details shows only two lines

35.00 (40000) DEBIT
35.00 (43120) CREDIT

(0097482)
hgbot (developer)
2017-06-19 16:49

Repository: erp/mods/org.openbravo.module.remittance
Changeset: d675cb9dedd4ae9e01cda8a912d9ce1f279bbbea
Author: Nono Carballo <nonofce <at> gmail.com>
Date: Wed May 31 14:00:00 2017 -0400
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/d675cb9dedd4ae9e01cda8a912d9ce1f279bbbea [^]

Fixes issue 36124: Accounting information not grouped by invoice when posting

Accounting information was not properly grouped when posting a payment related
with one invoice created from several orders. Accounting info was splitted by
order when this is not necessary and confusing for end user.

Now if there is a previous Payment Detail that belongs to the same Invoice, the amounts
are added.

---
M src/org/openbravo/module/remittance/ad_forms/DocREMRemittance.java
---
(0097483)
hgbot (developer)
2017-06-19 16:49

Repository: erp/mods/org.openbravo.module.remittance
Changeset: 9a56449876e7889c9cdf618a547c6f460e6ca9c1
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Jun 01 16:42:54 2017 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/9a56449876e7889c9cdf618a547c6f460e6ca9c1 [^]

Related to issue 36124: Code review improvements

Use BigDecimal.ZERO instead of new BigDecimal(0).
Changed totalAmount = amount.add(totalAmount) with totalAmount = totalAmount.add(amount) which is more understandable.

---
M src/org/openbravo/module/remittance/ad_forms/DocREMRemittance.java
---
(0097484)
hgbot (developer)
2017-06-19 16:49

Repository: erp/mods/org.openbravo.module.remittance
Changeset: adf441f1f1b6c18ecdbc9a50af175d89f5cdd261
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Jun 19 16:44:03 2017 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/adf441f1f1b6c18ecdbc9a50af175d89f5cdd261 [^]

Related to issue 36124: Update module version

---
M src-db/database/sourcedata/AD_MODULE.xml
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
---
(0097485)
aferraz (manager)
2017-06-19 16:51

Code review + Testing OK

- Issue History
Date Modified Username Field Change
2017-05-29 12:41 psanjuan New Issue
2017-05-29 12:41 psanjuan Assigned To => Triage Finance
2017-05-29 12:41 psanjuan Relationship added related to 0034432
2017-05-29 12:52 psanjuan Steps to Reproduce Updated View Revisions
2017-05-29 12:52 psanjuan Proposed Solution updated
2017-05-29 12:54 psanjuan File Added: Issue_36124.jpg
2017-05-29 12:54 psanjuan File Added: Issue_36124_Details.jpg
2017-05-31 19:50 nonofrancisco Assigned To Triage Finance => nonofrancisco
2017-05-31 19:50 nonofrancisco Status new => scheduled
2017-05-31 19:52 nonofrancisco Note Added: 0097063
2017-05-31 20:12 nonofrancisco Note Edited: 0097063 View Revisions
2017-06-19 16:38 aferraz Relationship replaced depends on 0034432
2017-06-19 16:49 hgbot Checkin
2017-06-19 16:49 hgbot Note Added: 0097482
2017-06-19 16:49 hgbot Status scheduled => resolved
2017-06-19 16:49 hgbot Resolution open => fixed
2017-06-19 16:49 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/d675cb9dedd4ae9e01cda8a912d9ce1f279bbbea [^]
2017-06-19 16:49 hgbot Checkin
2017-06-19 16:49 hgbot Note Added: 0097483
2017-06-19 16:49 hgbot Checkin
2017-06-19 16:49 hgbot Note Added: 0097484
2017-06-19 16:51 aferraz Review Assigned To => aferraz
2017-06-19 16:51 aferraz Note Added: 0097485
2017-06-19 16:51 aferraz Status resolved => closed
2018-03-14 15:26 ngarcia Relationship added related to 0038143
2018-03-14 15:49 ngarcia Relationship replaced causes 0038143


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker