| Openbravo Issue Tracking System - Openbravo ERP | 
| View Issue Details | 
| 
 | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0034371 | Openbravo ERP | 07. Sales management | public | 2016-11-03 10:37 | 2016-12-16 18:38 | 
| 
 | 
| Reporter | maite |  | 
| Assigned To | alekosmp86 |  | 
| Priority | urgent | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed |  | 
| Platform |  | OS | 5 | OS Version |  | 
| Product Version |  |  | 
| Target Version |  | Fixed in Version | 3.0PR17Q1 |  | 
| Merge Request Status |  | 
| Review Assigned To | aferraz | 
| OBNetwork customer | OBPS | 
| Web browser |  | 
| Modules | Core | 
| Support ticket | 43381 | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
| 
 | 
| Summary | 0034371: Invoice Date and Accounting Date should be truncated when invoice is created using "Void" process | 
| Description | Reversed invoice has dates with HH:MM:SS <> 00:00:00 what should not be the case | 
| Steps To Reproduce | 1. Register new Sales Invoice document for "F&B US East Coast" organization. Set any business partner and add any line and process 2. Run "Void" process
 3. Via database, verify that date fields are not truncated
 | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | related to | defect | 0027089 | 3.0PR15Q1 | closed | fsoto82 | Invoice Date and Accounting Date should be truncated when invoice is created using "Generate Invoice from Receipt" process |  | related to | defect | 0030971 | 3.0PR16Q1 | closed | aferraz | When voiding an unpaid invoice, payment schedule details should be canceled instead of deleted | 
 | 
| Attached Files |  | 
| 
 | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2016-11-03 10:37 | maite | New Issue |  | 
| 2016-11-03 10:37 | maite | Assigned To | => Triage Finance | 
| 2016-11-03 10:37 | maite | OBNetwork customer | => Yes | 
| 2016-11-03 10:37 | maite | Modules | => Core | 
| 2016-11-03 10:37 | maite | Support ticket | => 43381 | 
| 2016-11-03 10:37 | maite | Resolution time | => 1479596400 | 
| 2016-11-03 10:37 | maite | Triggers an Emergency Pack | => No | 
| 2016-11-03 10:37 | maite | Relationship added | related to 0027089 | 
| 2016-11-03 10:38 | maite | Issue Monitored: networkb |  | 
| 2016-11-03 20:59 | aferraz | Assigned To | Triage Finance => nonofrancisco | 
| 2016-11-07 17:07 | markmm82 | Assigned To | nonofrancisco => markmm82 | 
| 2016-11-07 17:50 | markmm82 | Status | new => acknowledged | 
| 2016-11-09 09:18 | aferraz | Relationship added | related to 0030971 | 
| 2016-11-09 10:13 | maite | Description Updated | bug_revision_view_page.php?rev_id=13580#r13580 | 
| 2016-11-09 10:13 | maite | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=13582#r13582 | 
| 2016-11-10 16:21 | markmm82 | Note Added: 0091340 |  | 
| 2016-11-10 16:27 | markmm82 | Status | acknowledged => scheduled | 
| 2016-11-11 09:09 | aferraz | Assigned To | markmm82 => alekosmp86 | 
| 2016-11-11 09:31 | hgbot | Checkin |  | 
| 2016-11-11 09:31 | hgbot | Note Added: 0091374 |  | 
| 2016-11-11 09:31 | hgbot | Status | scheduled => resolved | 
| 2016-11-11 09:31 | hgbot | Resolution | open => fixed | 
| 2016-11-11 09:31 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/ac6861ecdd851dc97f200b3eaf19908c899ddede [^] | 
| 2016-11-11 09:33 | aferraz | Review Assigned To | => aferraz | 
| 2016-11-11 09:33 | aferraz | Note Added: 0091375 |  | 
| 2016-11-11 09:33 | aferraz | Status | resolved => closed | 
| 2016-11-11 09:33 | aferraz | Fixed in Version | => 3.0PR17Q1 | 
| 2016-12-16 18:38 | hudsonbot | Checkin |  | 
| 2016-12-16 18:38 | hudsonbot | Note Added: 0092609 |  | 
	| Notes | 
	| 
 | 
	|  | 
		
			| Test Plan: Go to Sales Invoice screen
 Create a new record:
 Organization: F&B US East Coast
 Save the record.
 Go to [Lines] Tab
 Create a new record:
 Product: Pear Juice
 Invoiced Quantity: 100
 Tax: Sales Exempt
 Save the record.
 Complete the invoice.
 
 With the previously created sales invoice still selected, click on Reactivate button and select Void process. Click OK.
 
 A new reversed invoice is created based on the selected sales invoice.
 
 Via database, go to table C_Invoice, notice that the reversed invoice we have just created has date with HH:MM:SS = 00:00:00
 |  | 
	| 
 | 
	| 
		
			| (0091374) |  
			| hgbot |  
			| 2016-11-11 09:31 |  | 
		
			| Repository: erp/devel/pi Changeset: ac6861ecdd851dc97f200b3eaf19908c899ddede
 Author: Alejandro <alekosmp86 <at> gmail.com>
 Date: Wed Nov 09 12:24:38 2016 -0500
 URL: http://code.openbravo.com/erp/devel/pi/rev/ac6861ecdd851dc97f200b3eaf19908c899ddede [^]
 
 Fixes issue 34371: Dates are truncated in voided invoice
 
 Reversed invoices had dates with HH:MM:SS <> 00:00:00. Function C_Invoice_Post
 has been modified to trunc the dateinvoiced and dateacct fields. Reversed invoices
 are now created with date with HH:MM:SS = 00:00:00
 
 ---
 M src-db/database/model/functions/C_INVOICE_POST.xml
 ---
 
 |  | 
	| 
 | 
	|  |  | 
	| 
 | 
	|  |  |