Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035784Openbravo ERP07. Sales managementpublic2017-04-12 14:042017-04-25 19:01
ngarcia 
markmm82 
immediatemajoralways
closedfixed 
5
 
3.0PR17Q1.13.0PR17Q1.1 
aferraz
Core
Production - Confirmed Stable
2017-12-03
3.0PR17Q1
https://code.openbravo.com/erp/devel/pi/rev/9df1ba7871bb [^]
No
0035784: 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, the following two changes were wrong

AND (o.invoicerule IN ('I', 'O', 'D', 'S'))

OR (si.invoicefrequency IN ('D', 'W', 'T'))
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
No tags attached.
blocks defect 0035772 closed markmm82 Orders with Invoice Terms different from Customer Schedule After Delivery cannot be invoiced if the bp has an invoice schedule 
Issue History
2017-04-12 18:59markmm82Typedefect => backport
2017-04-12 18:59markmm82Target Version => 3.0PR17Q1.1
2017-04-25 17:44hgbotCheckin
2017-04-25 17:44hgbotNote Added: 0096166
2017-04-25 17:44hgbotStatusscheduled => resolved
2017-04-25 17:44hgbotResolutionopen => fixed
2017-04-25 17:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q1.1/rev/46c32862b234e5a9aeb12f6b82388bd9859c00e4 [^]
2017-04-25 17:45aferrazReview Assigned To => aferraz
2017-04-25 17:45aferrazNote Added: 0096168
2017-04-25 17:45aferrazStatusresolved => closed
2017-04-25 17:45aferrazFixed in Version => 3.0PR17Q1.1
2017-04-25 19:01hgbotCheckin
2017-04-25 19:01hgbotNote Added: 0096178

Notes
(0096166)
hgbot   
2017-04-25 17:44   
Repository: erp/backports/3.0PR17Q1.1
Changeset: 46c32862b234e5a9aeb12f6b82388bd9859c00e4
Author: Mark <markmm82 <at> gmail.com>
Date: Wed Apr 12 12:53:42 2017 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1.1/rev/46c32862b234e5a9aeb12f6b82388bd9859c00e4 [^]

Fixes issue 35784: 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
---
(0096168)
aferraz   
2017-04-25 17:45   
Code review + Testing OK
(0096178)
hgbot   
2017-04-25 19:01   
Repository: erp/backports/3.0PR17Q1.1
Changeset: 96d5a6df7326106c9dc8948e63d28c9b85af7704
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Apr 25 18:26:55 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1.1/rev/96d5a6df7326106c9dc8948e63d28c9b85af7704 [^]

Related to issue 35784: Fix dbcons failure

---
M src-db/database/model/views/C_INVOICE_CANDIDATE_V.xml
---