Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036870Openbravo ERP02. Master data managementpublic2017-09-15 13:302017-09-21 16:50
JONHM 
AtulOpenbravo 
highmajoralways
closedfixed 
5
 
3.0PR17Q4 
aferraz
Core
No
0036870: 'Customer Schedule After Delivery' invoice terms excludes services while 'After delivery' doesn't.
'Customer Schedule After Delivery' invoice terms excludes services while 'After delivery' doesn't.
Regarding this matter, "After Order Delivered" invoice terms behavior should be reviewed.
- First, you need to be sure that there are products and services available
0.1) Open 'Goods Movements' window and create a new record and then create a new line for 'Cerveza Ale 0,5L' to New Storage Bin 'RN 2-0-0'
0.2) Open 'Product' window and select 'Electricidad', switch to [Price] tab and add 'Tarifa de ventas' price list to that service.

CASE 1 (EXCLUDING SERVICE FROM GOODS SHIPMENT)
1.1) Create a new 'Sales Order' for 'Alimentos y Supermercados' business partner and set invoice terms as 'Customer Schedule After Delivery'
1.2) Then, create both lines for 'Cerveza Ale 0,5L' and 'Electricidad', also delete the discount in [Basic Discounts] tab. Book the Sales Order.
1.3) Open 'Goods Shipment' window and create a new record for 'Alimentos y Supermercados' business partner, open 'Create Lines From' process and select the previous order and some warehouse position. Select only the 'Cerveza Ale 0,5L'. Complete the shipment.
1.4) Open 'Sales Invoice' window and create a new record for 'Alimentos y Supermercados' business partner. Open 'Create Lines From' process and select the order. Only 'Cerveza Ale 0,5L' product is avaliable.
1.5) Reopen the previosuly created Sales Order, and set invoice terms as 'After Delivery'
1.6) Now, in 'Create Lines From' process from 'Sales Invoice' window, you can select both 'Cerveza Ale 0,5L' and 'Electricidad' products.


CASE 2 (INCLUDING SERVICE FROM GOODS SHIPMENT)
2.1) Create a new 'Sales Order' for 'Alimentos y Supermercados' business partner and set invoice terms as 'Customer Schedule After Delivery'
2.2) Then, create both lines for 'Cerveza Ale 0,5L' and 'Electricidad', also delete the discount in [Basic Discounts] tab. Book the Sales Order.
2.3) Open 'Goods Shipment' window and create a new record for 'Alimentos y Supermercados' business partner, open 'Create Lines From' process and select the previous order and some warehouse position. Select only the 'Cerveza Ale 0,5L' and 'Electricidad'. Complete the shipment.
2.4) Open 'Sales Invoice' window and create a new record for 'Alimentos y Supermercados' business partner. Open 'Create Lines From' process and select the order. Both products are avaliable.
2.5) Reopen the previosuly created Sales Order, and set invoice terms as 'After Delivery'
2.6) Now, reopen 'Create Lines From' process from 'Sales Invoice' window, and you can notice that also both products are available.
No tags attached.
related to design defect 0011383 scheduled luisrs8608 Sales order - Invoice Terms "After Delivery" - Able to create invoice for goods not shipped 
Issue History
2017-09-15 13:30JONHMNew Issue
2017-09-15 13:30JONHMAssigned To => Triage Finance
2017-09-15 13:30JONHMModules => Core
2017-09-15 13:30JONHMResolution time => 1507240800
2017-09-15 13:30JONHMTriggers an Emergency Pack => No
2017-09-15 13:39aferrazAssigned ToTriage Finance => AtulOpenbravo
2017-09-15 15:23PracticsIssue Monitored: Practics
2017-09-18 16:42AtulOpenbravoStatusnew => scheduled
2017-09-19 13:39aferrazRelationship addedrelated to 0011383
2017-09-19 19:38AtulOpenbravoNote Added: 0099151
2017-09-20 13:51hgbotCheckin
2017-09-20 13:51hgbotNote Added: 0099172
2017-09-20 13:51hgbotStatusscheduled => resolved
2017-09-20 13:51hgbotResolutionopen => fixed
2017-09-20 13:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/56870c4b2bd0432d974abb00507ae4361ca42acb [^]
2017-09-20 13:51aferrazReview Assigned To => aferraz
2017-09-20 13:51aferrazNote Added: 0099173
2017-09-20 13:51aferrazStatusresolved => closed
2017-09-20 13:51aferrazFixed in Version => 3.0PR17Q4
2017-09-21 16:50hudsonbotCheckin
2017-09-21 16:50hudsonbotNote Added: 0099420

Notes
(0099151)
AtulOpenbravo   
2017-09-19 19:38   
Test Plan

- Login as F&B International Group Admin
- Navigate to 'Product' window and select 'Electricidad', switch to [Price] tab and add 'Tarifa de ventas' price list to that service.
- Create a Sales Order with 'Alimentos y Supermercados' business partner and set invoice terms as 'After Delivery'.
- Add line for product 'Cerveza Ale 0,5L', 'Electricidad', keep the discount in the Basic Discount Tab do not remove it.
- Book the order and realize that discount line is created.
- Make a copy of above order set invoice terms as "Customer Schedule After Delivery" and book it.
- Make another copy of above order and set invoice terms as "After Order Delivered".
- Create Goods Shipment using first order, Line 10 (Product = Cerveza Ale 0,5L) create a shipment and process it.
- Create another Goods Shipment using second order Line 20 (Product = Electricidad) and process it.
- Create another Goods Shipment using third order line 30 (Product = Discount) and process it.
- Create a Sales Invoice header for same business partner as above. Check order selector in Create Line From popup.
  - Order 1 and Order 2 appears (Invoice term for Order 1 = After Delivery, invoice terms for Order 2 = Customer Schedule After Delivery)
- Navigate to Create Invoice from order process, realize that Order 1 and Order 2 appears in the list.
- Change the invoice term of order 1 and order 2 as "After Order Delivered".
- Check either in Sales Invoice header Create Lines From pop up order selector or Create Invoice from order process, order 1 and order 2 does not appear in the list.
- Change invoice term of order 1 = Customer Schedule After Delivery and for order 2 set as "After Delivery"
- Check either in Sales Invoice header Create Lines From pop up order selector or Create Invoice from order process, order 1 and order 2 appears in the list.

Note: Issue 11383 is reproducible as there is solution provided yet to load the order lines based on invoice term.
(0099172)
hgbot   
2017-09-20 13:51   
Repository: erp/devel/pi
Changeset: 56870c4b2bd0432d974abb00507ae4361ca42acb
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Sep 19 23:11:32 2017 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/56870c4b2bd0432d974abb00507ae4361ca42acb [^]

Fixes issue 36870: After delivery invoice terms excludes services
while Customer Schedule After Delivery doesn't.

Create Line From popup order selector strictly considered that all lines should be delivered
in the order with invoice term "Customer Schedule After Delivery". Change the condition
same as "After Delivery" invoice term.

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice_data.xsql
---
(0099173)
aferraz   
2017-09-20 13:51   
Code review + Testing OK
(0099420)
hudsonbot   
2017-09-21 16:50   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9750b78d3e5c [^]
Maturity status: Test