Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038623Openbravo ERP07. Sales managementpublic2018-05-24 18:112019-08-21 16:23
ngarcia 
collazoandy4 
highminoralways
scheduledopen 
5
 
 
Core
No
0038623: Cannot void an invoice included in a processed Tax Payment
Cannot void an invoice included in a processed Tax Payment. It should not be possible to reactivate them but they should be voided as a new invoice is created that could then be included in a new Tax Payment
As group admin role:
   Create a Tax Register Type
   Set it as Sales Transaction
   Add a Line to it:
      Tax: Entregas IVA 21%
      Document Type: AR Invoice
   Create a Sales Invoice
   Add a product and select Entregas IVA 21% tax rate
   Complete it

   Create a record in Tax Payment window for invoice's organization, business partner, currency and dates
   Select Generate Payment
   Create Vat Registers and Process

   Return to the Sales Invoice and try to void it
   Check the following message is shown:
      "Iinvoice registered in a VAT Register"
   
   
Remove the 'VO' option from the condition in c_invoice_post function in which the '20615' message is raised
No tags attached.
Issue History
2018-05-24 18:11ngarciaNew Issue
2018-05-24 18:11ngarciaAssigned To => Triage Finance
2018-05-24 18:11ngarciaModules => Core
2018-05-24 18:11ngarciaTriggers an Emergency Pack => No
2018-05-24 18:13ngarciaIssue Monitored: networkb
2018-05-24 18:15ngarciaProposed Solution updated
2018-07-25 17:34collazoandy4Assigned ToTriage Finance => collazoandy4
2018-10-03 12:43psanjuanNote Added: 0107136
2018-10-04 10:57psanjuanNote Edited: 0107136bug_revision_view_page.php?bugnote_id=0107136#r17741
2019-08-17 07:35collazoandy4Statusnew => scheduled
2019-08-21 16:23collazoandy4Note Added: 0114112

Notes
(0107136)
psanjuan   
2018-10-03 12:43   
(edited on: 2018-10-04 10:57)
To reproduce this issue it is also required to configure a Purchase Tax Register Type associated to a tax rate such as Adqusiciones IVA 21%, for document type AP Invoice and Reverse Puchase Invoice.

Sales Tax Register needs to be associated to AR Invoice and Reverse Sales Invoice document types.

Currently at the time of voiding a sales invoice there is no way to introduce the date of the reverse sales invoice. That date should not be within Tax Payment Period.

There is a workaround that is to unprocess the tax payment.

(0114112)
collazoandy4   
2019-08-21 16:23   
Test Plan
  Go to Tax Registry Type window and create a new record:
    Register Name: SalesRegisterType
    Sales Transaction: T
    Add a Line to it:
      Tax: Entregas IVA 21%
      Document Type: AR Invoice
    Create another Tax Register Type Header:
      Register Name: PurchaseRegisterType
      Sales Transaction: T
      Add a Line to it:
        Tax: Adquisiciones IVA 21% - IVA Normal
        Document Type: AP Invoice
  Go to Sales Invoice and create a new record:
    Business Partner: Alimentos y Supermercados, S.A
    Invoice Date: 19-08-2018
    Accounting Date: 19-08-2018
      Create a new Line record:
        Product: Agua sin Gas 1L
        Tax: Entregas IVA 21%
    Complete and Post the record
  Go to Purchase Invoice and create a new record:
    Business Partner: Bebidas Alegres, S.L.
    Invoice Date: 19-08-2018
    Accounting Date: 19-08-2018
    Create a new record in Lines tab:
      Product: Cerveza Ale 0,5L
      Tax: Adquisiciones IVA 21%
  Go to Tax Payment window and create a new record:
    Name: Tax Payment
    Business Partner: Alimentos y Supermercados, S.A
    Starting Date: 01-08-2018
    Ending Date: 31-08-2018
    Clic on Vat Registers button
    Clic on Process button
  Go to the previous invoice void it and check the process ends without errors