Openbravo Issue Tracking System - Modules
View Issue Details
0027078ModulesRemittancepublic2014-07-15 12:552014-12-31 08:39
psanjuan 
Sandrahuguet 
urgentmajoralways
closedfixed 
20Ubuntu 8.04.1
 
 
0027078: Remittance module does not properly manage temporary Cash VAT posting into fnal VAT posting.
Remittance module does not properly manage temporary Cash VAT posting into "final" VAT posting, in the case of including either a sales or purchase Invoice in a remittance.

Go to purchase invoice and create a new invoice for a vendor who has a remittance type payment method, such as "Cuaderno 34".
This vendor has also to be a CASH VAT vendor.

Complete and post the invoice. Posting will look like: (Spanish/ EUR General Ledger)

Debit: (60000) Compras 3750
Debit: (47200T) IVA soportado Temporal 650
Credit: (40000) Proveedores 4400

Let's say that invoice due date is 31-10-2014

Go to Remittance window and create a new remittance. Enter below data:

Remittance Type: Cuaderno 34
Expected date: 31-10-2014
Name: Payment remittance
Press "Select Orders or Invoices".

In this new window select the INVOICE previously created Press Process.
Realize that the tab Lines includes now the invoice to be paid through the remittance.

Press Process and then post.

Posting will look like:
Debit: (40000) Proveedores 4400
Credit: (40100) Proveedores efectos comerciales a pagar 4400

Go to Settle/Protest Remittances window and select the remittance previously created in the field Remittance.

Press search. Remittance is shown.

Enter 15-11-2014 as "Accounting Date" and press Settle.

Go to Remittance window, "Settled" tab and post the settled remittance.

Posting would look like:

Debit: (40100) Proveedores efectos comeciales a pagar 4400
Credit: (57200) Bancos 4400






Temporary VAT should be move to final VAT when a remittance line is post to the ledger as settled in the "Remittance" window, "Settled" tab, at the accounting date entered by the end user in the "Settle/Protest Remittance" window.

That accounting date should be reflected in the Cash VAT tab of the corresponding invoice.

Therefore in our example, correct settle remittance posting should be

Debit: (40100) Proveedores efectos comeciales a pagar 4400
Debit: (47200) IVA soportado 650
Credit: (57200) Bancos 4400
Credit: (47200T) IVA soportado Temporal 650

Important remarks:

(1) same kind of posting also applies to remittances including sales invoices, therefore settle remittance posting should be (in the case of a remittance for discount):

Debit: (57200) Bancos 982
Debit: (47700T) IVA repercutido temporal 47.40
Credit: (43110) Efectos comerciales descontados 982
Credit: (47700) IVA repercutido 47.40

A remittance for discount creates two payments, one is the discount payment (status: payment made), this one can be posted; and the other one is the remittance payment (status: settled in remittance) which can not be posted.

The posting of the first one (discount payment) will look like:
Debit: (55500) Partidas pendientes de aplicación 1240
Credit: (52080) Deudas por efectos descontandos 1240

Discount payment posting does not imply any Cash VAT posting to VAT posting.

(2) same kind of posting also applies to remittances including sales invoices, therefore settle remittance posting should be (in the case of a remittance NOT for discount):

Debit: (52080) Deudas por efectos descontados 982
Debit: (47700T) IVA repercutido temporal 47.40
Credit: (43120) Efectos comerciales en gestión de cobro 982
Credit: (47700) IVA repercutido 47.40

(3) In the case of a remittance including either a sales or a purchase order, there should not be any Cash VAT posting to VAT posting, because this kind of posting only makes sense while a purchase or sales INVOICE including cash vat rates is being paid as settled in a remittance.

(4) In the case of a remittance including either a sales or a purchase invoice which have been partially pre-paid, Cash VAT posting to VAT posting needs to be just for the part of the invoice do NOT paid (pre-paid) that is now being settled/paid.

(5) A remittance (payment in or payment out remittance type) can include more than one invoice/order which can be merged into a single payment remittance.

(6) A remittance (payment in or payment out remittance type) can include payments. Only if that payment has not being posted so far it would make sense to manage temporary Cash VAT posting into VAT posting.

See some examples in the excel file attached.
No tags attached.
related to defect 0028533 closed Sandrahuguet Remittance module does not properly manage temporary Cash VAT posting into fnal VAT posting 
? Remesas_CASHVAT_Issue 27078.ods (43,532) 2014-10-09 14:51
https://issues.openbravo.com/file_download.php?file_id=7333&type=bug
Issue History
2014-07-15 12:55psanjuanNew Issue
2014-07-15 12:55psanjuanAssigned To => psanjuan
2014-07-21 12:45psanjuanSummaryRemittance for discount does not manage Cash VAT info properly => Remittance and Remittance for discount does not manage Cash VAT info properly
2014-07-21 12:45psanjuanDescription Updatedbug_revision_view_page.php?rev_id=6102#r6102
2014-07-21 12:47psanjuanSummaryRemittance and Remittance for discount does not manage Cash VAT info properly => Remittance and Remittance for discount does not manage Cash VAT info properly, therefore Cash VAT posting is not happening
2014-07-21 12:47psanjuanDescription Updatedbug_revision_view_page.php?rev_id=6103#r6103
2014-07-21 13:01psanjuanSummaryRemittance and Remittance for discount does not manage Cash VAT info properly, therefore Cash VAT posting is not happening => Remittancefor discount does not manage Cash VAT info properly
2014-07-21 13:01psanjuanDescription Updatedbug_revision_view_page.php?rev_id=6104#r6104
2014-07-21 13:42psanjuanSummaryRemittancefor discount does not manage Cash VAT info properly => Remittance module does not properly manage Cash VAT posting
2014-07-21 13:42psanjuanDescription Updatedbug_revision_view_page.php?rev_id=6105#r6105
2014-07-24 12:51psanjuanProposed Solution updated
2014-07-24 12:52psanjuanProposed Solution updated
2014-09-30 09:00psanjuanNote Added: 0070535
2014-10-01 15:30psanjuanSummaryRemittance module does not properly manage Cash VAT posting => Remittance module does not properly manage temporary Cash VAT posting to VAT posting
2014-10-01 15:30psanjuanDescription Updatedbug_revision_view_page.php?rev_id=6697#r6697
2014-10-01 15:30psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6699#r6699
2014-10-01 15:38psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6700#r6700
2014-10-01 15:52psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6701#r6701
2014-10-01 15:52psanjuanProposed Solution updated
2014-10-01 15:55psanjuanProposed Solution updated
2014-10-01 15:59psanjuanProposed Solution updated
2014-10-01 16:09psanjuanNote Added: 0070612
2014-10-01 16:09psanjuanProposed Solution updated
2014-10-01 16:09psanjuanNote Edited: 0070612bug_revision_view_page.php?bugnote_id=0070612#r6703
2014-10-01 16:22psanjuanSummaryRemittance module does not properly manage temporary Cash VAT posting to VAT posting => Remittance module does not properly manage temporary Cash VAT posting into fnal VAT posting.
2014-10-01 16:22psanjuanDescription Updatedbug_revision_view_page.php?rev_id=6704#r6704
2014-10-01 16:22psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6705#r6705
2014-10-01 16:22psanjuanProposed Solution updated
2014-10-01 16:32psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6706#r6706
2014-10-01 16:32psanjuanProposed Solution updated
2014-10-01 16:36psanjuanNote Edited: 0070612bug_revision_view_page.php?bugnote_id=0070612#r6707
2014-10-01 16:36psanjuanNote Edited: 0070612bug_revision_view_page.php?bugnote_id=0070612#r6708
2014-10-01 16:37psanjuanFile Added: Remesas_CASHVAT_Issue 27078.ods
2014-10-01 16:37psanjuanProposed Solution updated
2014-10-01 16:42psanjuanProposed Solution updated
2014-10-03 10:04vmromanosStatusnew => scheduled
2014-10-03 10:04vmromanosAssigned Topsanjuan => vmromanos
2014-10-03 10:04vmromanosfix_in_branch => pi
2014-10-03 10:56hgbotCheckin
2014-10-03 10:56hgbotNote Added: 0070680
2014-10-03 10:56hgbotStatusscheduled => resolved
2014-10-03 10:56hgbotResolutionopen => fixed
2014-10-03 10:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/921150d7f0e4a01e6fe764bf5f0341a9372b26e3 [^]
2014-10-03 10:56hgbotCheckin
2014-10-03 10:56hgbotNote Added: 0070681
2014-10-03 10:56hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/921150d7f0e4a01e6fe764bf5f0341a9372b26e3 [^] => http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/e49b0d2637317d075a2badacd8e5a7997f50f710 [^]
2014-10-03 10:57vmromanosNote Added: 0070682
2014-10-06 10:26psanjuanFile Deleted: Remesas_CASHVAT_Issue 27078.ods
2014-10-06 10:57hgbotCheckin
2014-10-06 10:57hgbotNote Added: 0070732
2014-10-06 10:57hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/e49b0d2637317d075a2badacd8e5a7997f50f710 [^] => http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/bf89ba6efdb892b8771be97323aaf592dfbda313 [^]
2014-10-06 10:58hgbotCheckin
2014-10-06 10:58hgbotNote Added: 0070733
2014-10-06 10:58hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/bf89ba6efdb892b8771be97323aaf592dfbda313 [^] => http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/58e46b163a9035587ddc2621a42c44be15a4154e [^]
2014-10-06 10:58vmromanosNote Added: 0070734
2014-10-08 08:56psanjuanNote Added: 0070793
2014-10-08 08:58psanjuanFile Added: Remesas_CASHVAT_Issue 27078.ods
2014-10-08 08:59psanjuanStatusresolved => closed
2014-10-08 08:59psanjuanfix_in_branchpi =>
2014-10-09 14:50psanjuanFile Deleted: Remesas_CASHVAT_Issue 27078.ods
2014-10-09 14:51psanjuanFile Added: Remesas_CASHVAT_Issue 27078.ods
2014-12-30 09:56psanjuanNote Added: 0072870
2014-12-30 09:56psanjuanAssigned Tovmromanos => Sandrahuguet
2014-12-30 09:56psanjuanStatusclosed => new
2014-12-31 08:35psanjuanNote Added: 0073284
2014-12-31 08:36psanjuanNote Edited: 0073284bug_revision_view_page.php?bugnote_id=0073284#r7370
2014-12-31 08:36psanjuanStatusnew => scheduled
2014-12-31 08:37psanjuanStatusscheduled => resolved
2014-12-31 08:39psanjuanStatusresolved => closed
2015-01-07 14:10ngarciaRelationship addedrelated to 0028533

Notes
(0070535)
psanjuan   
2014-09-30 09:00   
Another ticket related 30564
(0070612)
psanjuan   
2014-10-01 16:09   
(edited on: 2014-10-01 16:36)
test plan:

- payment in/our remittances including invoices with cash vat taxes together with no cash vat taxes (such as tax exempt).

- payment in/out remittances including more than one cash vat invoice

- payment in/out remittances including more than one cash vat invoice, single payment.

- payment in remittance for discount, including more than one cash vat invoice

- payment in/out remittance, including orders (total payment)

- payment in/out remittance, including orders (partial payment)

- payment in/out remittance, including invoice (partial payment)

- payment in/out remittance, including invoice and order (partial payment)

- payment in/out remittance, including payments no posted

- payment in/out remittance unpost and reactivate

(0070680)
hgbot   
2014-10-03 10:56   
Repository: erp/mods/org.openbravo.module.remittance
Changeset: 921150d7f0e4a01e6fe764bf5f0341a9372b26e3
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Fri Oct 03 10:38:31 2014 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/921150d7f0e4a01e6fe764bf5f0341a9372b26e3 [^]

Fixed issue 27078: Cash VAT support in Remittance posting

Added Cash VAT for remittance accounting posting.
When a Settled remittance is posted, the accounting process moved the VAT amount from the temporary account to the final one in case the associated payment is linked to a cash vat invoice.
This process works for normal remittances or remittances for discount, regardless the Single Payment flag is set or not.

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/remittance/ad_forms/DocREMRemittanceCancel.java
---
(0070681)
hgbot   
2014-10-03 10:56   
Repository: erp/mods/org.openbravo.module.remittance
Changeset: e49b0d2637317d075a2badacd8e5a7997f50f710
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Fri Oct 03 10:38:31 2014 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/e49b0d2637317d075a2badacd8e5a7997f50f710 [^]

Fixed issue 27078: Cash VAT support in Remittance posting

Added Cash VAT for remittance accounting posting.
When a Settled remittance is posted, the accounting process moved the VAT amount from the temporary account to the final one in case the associated payment is linked to a cash vat invoice.
This process works for normal remittances or remittances for discount, regardless the Single Payment flag is set or not.

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/remittance/ad_forms/DocREMRemittanceCancel.java
---
(0070682)
vmromanos   
2014-10-03 10:57   
Published versions 3.1.16 and 3.2.8 in test status
(0070732)
hgbot   
2014-10-06 10:57   
Repository: erp/mods/org.openbravo.module.remittance
Changeset: bf89ba6efdb892b8771be97323aaf592dfbda313
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Mon Oct 06 10:40:08 2014 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/bf89ba6efdb892b8771be97323aaf592dfbda313 [^]

Fixed issue 27078: Added prepayment support

In case the payment is a prepayment, no Cash VAT posting is reflected when posting a Settle remittance

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/remittance/ad_forms/DocREMRemittanceCancel.java
---
(0070733)
hgbot   
2014-10-06 10:58   
Repository: erp/mods/org.openbravo.module.remittance
Changeset: 58e46b163a9035587ddc2621a42c44be15a4154e
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Mon Oct 06 10:40:08 2014 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/58e46b163a9035587ddc2621a42c44be15a4154e [^]

Fixed issue 27078: Added prepayment support

In case the payment is a prepayment, no Cash VAT posting is reflected when posting a Settle remittance

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/remittance/ad_forms/DocREMRemittanceCancel.java
---
(0070734)
vmromanos   
2014-10-06 10:58   
Canceled versions 3.1.16 and 3.2.8 in test status.
Published versions 3.1.17 and 3.2.9 in test status
(0070793)
psanjuan   
2014-10-08 08:56   
fixed and working. See excel sheet attached as it contains the test cases executed.
(0072870)
psanjuan   
2014-12-30 09:56   
Issue re-opened as this is not working now in 3.0PR14Q3.4
(0073284)
psanjuan   
2014-12-31 08:35   
(edited on: 2014-12-31 08:36)
Issue closed as it should not have been re-opened due to the regression found, but a new issue needs to be entered.