Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035772 | Openbravo ERP | 07. Sales management | public | 2017-04-12 14:04 | 2017-05-29 17:43 |
|
Reporter | ngarcia | |
Assigned To | markmm82 | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q3 | |
Merge Request Status | |
Review Assigned To | aferraz |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Production - QA Approved |
Regression date | 2017-03-12 |
Regression introduced in release | main |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/9df1ba7871bb [^] |
Triggers an Emergency Pack | No |
|
Summary | 0035772: Orders with Invoice Terms different from Customer Schedule After Delivery cannot be invoiced if the bp has an invoice schedule |
Description | Sales Orders with Invoice Terms different from Customer Schedule After Delivery (Immediate, After Delivery, After Order Delivered) cannot be invoiced if the business partner has an invoice schedule defined and the order does not fill its requirement
The problem is that the order is not returned by the C_INVOICE_CANDIDATE_V view, the following two changes were wrong
AND (o.invoicerule IN ('I', 'O', 'D', 'S'))
OR (si.invoicefrequency IN ('D', 'W', 'T')) |
Steps To Reproduce | As group admin role:
Create a new Invoice Schedule
Configure it in order a sales order with today's date not to be automatically invoiced. Example being today 12-04-2017
Day of The Month: 15
Invoice Cut-Off Day: 13
Set the Customer Schedule After Delivery Invoice Terms to a customer
Create a Sales Order to that customer and set its Invoice Terms as Immediate
Check the order does not appear in the Create Invoices From Orders process
Create a sales invoice header and check the order is not shown in the Create lines From process |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0035783 | 3.0PR17Q2 | closed | markmm82 | Orders with Invoice Terms different from Customer Schedule After Delivery cannot be invoiced if the bp has an invoice schedule | depends on | backport | 0035784 | 3.0PR17Q1.1 | closed | markmm82 | Orders with Invoice Terms different from Customer Schedule After Delivery cannot be invoiced if the bp has an invoice schedule | caused by | defect | 0035341 | | closed | mcobas | Wrong orders shown in "Create Invoices From Orders" window |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-04-12 14:04 | ngarcia | New Issue | |
2017-04-12 14:04 | ngarcia | Assigned To | => Triage Finance |
2017-04-12 14:04 | ngarcia | Modules | => Core |
2017-04-12 14:04 | ngarcia | Resolution time | => 1493762400 |
2017-04-12 14:04 | ngarcia | Triggers an Emergency Pack | => No |
2017-04-12 14:04 | ngarcia | Issue Monitored: networkb | |
2017-04-12 14:04 | ngarcia | Relationship added | caused by 0035341 |
2017-04-12 14:29 | aferraz | Assigned To | Triage Finance => markmm82 |
2017-04-12 14:51 | heccam | Issue Monitored: heccam | |
2017-04-12 16:37 | markmm82 | Status | new => acknowledged |
2017-04-12 18:58 | markmm82 | Regression level | => Production - Confirmed Stable |
2017-04-12 18:58 | markmm82 | Regression date | => 2017-12-03 |
2017-04-12 18:58 | markmm82 | Regression introduced in release | => 3.0PR17Q1 |
2017-04-12 18:58 | markmm82 | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/9df1ba7871bb [^] |
2017-04-12 18:59 | markmm82 | Status | acknowledged => scheduled |
2017-04-12 20:55 | markmm82 | Note Added: 0096034 | |
2017-04-24 13:05 | aferraz | Regression level | Production - Confirmed Stable => Production - QA Approved |
2017-04-24 13:05 | aferraz | Regression date | 2017-12-03 => 2017-03-12 |
2017-04-24 13:05 | aferraz | Regression introduced in release | 3.0PR17Q1 => main |
2017-04-25 17:35 | hgbot | Checkin | |
2017-04-25 17:35 | hgbot | Note Added: 0096163 | |
2017-04-25 17:35 | hgbot | Status | scheduled => resolved |
2017-04-25 17:35 | hgbot | Resolution | open => fixed |
2017-04-25 17:35 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/da58b93b63023423cb40ffe3101732865454f93b [^] |
2017-04-25 17:44 | aferraz | Review Assigned To | => aferraz |
2017-04-25 17:44 | aferraz | Note Added: 0096165 | |
2017-04-25 17:44 | aferraz | Status | resolved => closed |
2017-04-25 17:44 | aferraz | Fixed in Version | => 3.0PR17Q3 |
2017-04-25 18:56 | hgbot | Checkin | |
2017-04-25 18:56 | hgbot | Note Added: 0096175 | |
2017-04-25 19:00 | aferraz | Note Deleted: 0096165 | |
2017-04-25 19:00 | aferraz | Note Added: 0096177 | |
2017-05-29 17:43 | hudsonbot | Checkin | |
2017-05-29 17:43 | hudsonbot | Note Added: 0096907 | |
2017-05-29 17:43 | hudsonbot | Checkin | |
2017-05-29 17:43 | hudsonbot | Note Added: 0096909 | |
Notes |
|
|
Test Plan 1:
As group admin role:
Go to Invoice Schedule window and create a new one.
Configure it in order a sales order with today's date not to be automatically invoiced.
Example being today 12-04-2017
Invoice Frequency: Weekly
Day of The Month: Friday (15-04-2017)
Invoice Cut-Off Day: Thursday (15-04-2017)
Go to Business Partner window and create a new vendor.
Name: BBCustomer1
Business Partner Category: Customer - Tier 1
Go to Customer tab and define as:
Price List: Tarifa de ventas
Payment method: Transferencia
Financial account: Cuenta de banco
Invoice Terms: Customer Schedule After Delivery
Invoice Schedule: Select previously created invoice schedule.
Go to Location/Address tab and create a new one for Spain.
Go to Sales Order window and create a new header.
Business Partner: BBCustomer1
Invoice Terms: Immediate
Go to lines tab and add a line with any product.
Book the Sales order.
Run Create Invoices From Orders process
Check the order appears in the list.
Create a sales invoice header for previously created BP.
Run the Create lines From process and check the order is shown there.
Test Plan 2 (Related to issue 35341):
- Create a new Sales Order:
- Transaction Document: POS Order
- Business Partner: Alimentos y Supermercados
- Invoice Terms: Immediate
- Create a new line for the Sales Order (Cerveza ale 0'5L).
- Book the Sales Order.
- Open the new invoice created from the previously created Order.
- Reactivate the invoice and delete a line.
- Then complete the invoice.
- Go to the window [Create Invoices From Orders].
- Notice that the POS Order is not show there.
Test cases related to issue 34205:
Test Plan 3
- Go to F&B International Group Admin.
- Create an Invoice Schedule with name Daily and frequency as Daily.
- For business partner "Hoteles Buenas Noches, S.A.", in Customer Tab using invoice term as "Customer Schedule After Delivery" set Invoice Schedule as Daily.
- Keeping Invoice Schedule as Daily set invoice term as blank.
- Create an Order for business partner "Hoteles Buenas Noches, S.A." with Immediate Invoice Term. Add Line/s to it. Complete it.
- Create a Sales Invoice Header. Using Create Lines From, try to select above order.
- Above order appears in the drop down list.
- Run Create Invoices From Orders process and notice that the Order is show there.
Test Plan 4
- Create a Order for Alimentos y Supermercados, S.A bp, with invoice term 'Do Not Invoice'. Add line and Complete it.
- Create a Shipment for above order. Complete the shipment.
- Create a Sales Invoice Header and using Create Lines From, check Order Combo and previously order does not appear in drop down list.
- Run Create Invoices From Orders process and notice that the Order is not shown there.
- Check Shipment combo, above shipment does not appear in drop down list.
Test Plan 5
- Create Sales Order for Restaurantes Luna Llena, S.A. bp, with Invoice Term as "Do Not Invoice". Add line/s to it. Book it.
- Create a Sales invoice Header, using Create Lines From button process check Order combo.
- Above order does not appear in the list.
- Go to Create Invoices From Order process.
- Try to search above order, it wont appear in the grid.
- Run Create Shipments from Order process, select above Order. Notice a new shipment is created from the order.
- Go to Create Invoices From Order process.
- Try to search above order, it wont appear in the grid.
- Go to Sales Invoice created above, using Create Lines From button process check Order combo.
- Above order does not appear in the list.
- Check Shipment combo, above created shipment does not appear in the list. |
|
|
(0096163)
|
hgbot
|
2017-04-25 17:35
|
|
Repository: erp/devel/pi
Changeset: da58b93b63023423cb40ffe3101732865454f93b
Author: Mark <markmm82 <at> gmail.com>
Date: Wed Apr 12 12:53:42 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/da58b93b63023423cb40ffe3101732865454f93b [^]
Fixes issue 35772: Orders with Invoice Terms different from Customer Schedule
After Delivery cannot be invoiced if the bp has an invoice schedule
Sales Orders with Invoice Terms different from Customer Schedule After Delivery
(Immediate, After Delivery, After Order Delivered) cannot be invoiced if the business
partner has an invoice schedule defined and the order does not fill its requirement
The problem is that the order is not returned by the C_INVOICE_CANDIDATE_V view.
To avoid it was fixed the condition that takes into account the invoice rule of
the order and the sales invoice frequency.
---
M src-db/database/model/views/C_INVOICE_CANDIDATE_V.xml
---
|
|
|
(0096175)
|
hgbot
|
2017-04-25 18:56
|
|
|
|
|
|
|
|
|
|
|
|