Notes |
|
|
Test Plan:
Create a new Price List:
Organization = F&B España, S.A
Name = PLSales
Sales Price List = 'Y'
Price Includes Tax = 'Y'
Currency = EUR
Create a new Price List Version to it
Name = PLSalesVersion
Valid From Date = Today
Price List Schema = Esquema de Tarificación
Create a new Price List:
Organization = F&B España, S.A
Name = PLPurchase
Sales Price List = 'N'
Price Includes Tax = 'Y'
Currency = EUR
Create a new Price List Version to it
Name = PLPurchaseVersion
Valid From Date = Today
Price List Schema = Esquema de Tarificación
Create a Tax Category
Organization = F&B España, S.A
Name = TaxCategory16
Creat a tax rate for it:
Organization = F&B España, S.A
Name = TaxRate16
Valid From Date = Today
Tax Category = TaxCategory16
Rate = 16
Sale/Purchase Type = Both
Create a new product, set the previously created tax category
Organization = F&B España, S.A
Name = TestProduct
Tax Category = TaxCategory16
Add a price for it:
Price List Version = PLSalesVersion
Unit Price = List Price = 11.00
Add a price for it:
Price List Version = PLPurchaseVersion
Unit Price = List Price = 11.00
Create new business partners: one as vendor (vendor) and one as a customer (customer) and assign the previously created price lists
Vendor
Organization = F&B España, S.A
Name = vendorA
Business Partner Category = Supplier
Go to Vendor/Creditor tab and define as:
Purchase Price List = PLPurchase
Vendor
Organization = F&B España, S.A
Name = customerB
Business Partner Category = Customer - Tier 1
Go to Customer tab and define as:
Purchase Price List = PLSales
Configure Inter-company:
Business Partners mapping
Mapping vendor vendorA to organization F&B España, S.A
Go to Organization and select F&B España, S.A org.
Go to Information tab and set vendorA as Business Partner of the organization.
Mapping customer customerB to organization F&B España - Región Norte
Go to Organization and select F&B España - Región Norte org.
Go to Information tab and set customerB as Business Partner of the organization.
Definition of Inter-company Document Types
Go to Document Types window and create a new one:
Organization = *
Name = Inter-company Sales Order
Print text = Inter-company Sales Order
G/L Category = Standard
Sales transaction = Checked
Document Category = Sales Order
SO Sub Type = Standard Order
Document Sequence = Standard Order
Table = C_Order
Inter-company = Checked
Go to Document Types window and create a new one:
Organization = *
Name = Inter-company Purchase Order
Print text = Inter-company Purchase Order
G/L Category = Standard
Sales transaction = Not Checked
Document Category = Purchase Order
Document Sequence = Purchase Order
Table = C_Order
Inter-company = Checked
Go to Document Types window and create a new one:
Organization = *
Name = Inter-company Sales Invoice
Print text = Inter-company Sales Invoice
G/L Category = Standard
Sales transaction = Checked
Document Category = AR Invoice
Document Sequence = AR Invoice
Table = C_Invoice
Inter-company = Checked
Go to Document Types window and create a new one:
Organization = *
Name = Inter-company Purchase Invoice
Print text = Inter-company Purchase Invoice
G/L Category = Standard
Sales transaction = Checked
Document Category = AP Invoice
Document Sequence = AP Invoice
Table = C_Invoice
Inter-company = Checked
Mapping document types
Go to Document Types window and select Document Definition 'Inter-company Sales Order'
Create a new record in 'Inter-company Relations' tab
Source organization = F&B España - Región Norte
Target organization = F&B España, S.A
Target Document type = Inter-company Purchase Order
Go to Document Types window and select Document Definition 'Inter-company Sales Invoice'
Create a new record in 'Inter-company Relations' tab
Source organization = F&B España - Región Norte
Target organization = F&B España, S.A
Target Document type = Inter-company Purchase Invoice
document types, organization's business partners... (you can follow the documentation)
Go to Sales Order window and create a new Inter-company Sales Order for the customer and price list already created
Organizatio = F&B España - Región Norte
Transaction Document = Inter-company Sales Order
Business Partner = customerB
Create a new line and add 20 units of the already created product
Product = Test Product
Ordered Quantity = 20
Tax = TaxRate16 (Should be automatically populated)
Try to Book it. Notice the process ends successfully and a new Purchase Order is created. |
|
|
(0102211)
|
hgbot
|
2018-02-06 11:13
|
|
Repository: erp/pmods/org.openbravo.interco
Changeset: 38f71821c7a50fb932653fd5815ab4ba472aec7b
Author: Mark <markmm82 <at> gmail.com>
Date: Mon Feb 05 15:33:36 2018 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.interco/rev/38f71821c7a50fb932653fd5815ab4ba472aec7b [^]
Fixes issue 37789:Cannot book an Inter-company Order if the price includes taxes
Moved validation at the end of the function to be applied after the documents are
processed by the C_Order_Post/C_Invoice_Post functions and problems with rounding
have been handled.
---
M src-db/database/model/functions/INTERCO_CREATE_INVOICE.xml
M src-db/database/model/functions/INTERCO_CREATE_ORDER.xml
---
|
|
|
(0102212)
|
hgbot
|
2018-02-06 11:13
|
|
Repository: erp/pmods/org.openbravo.interco
Changeset: 88ee2c4f65050c733018a1008ddad4a1d5f2dc36
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Tue Feb 06 11:08:05 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.interco/rev/88ee2c4f65050c733018a1008ddad4a1d5f2dc36 [^]
Related to Issue 37789. Code review changes.
Added comment to explain why the code has been moved
---
M src-db/database/model/functions/INTERCO_CREATE_INVOICE.xml
M src-db/database/model/functions/INTERCO_CREATE_ORDER.xml
---
|
|
|
(0102213)
|
hgbot
|
2018-02-06 11:13
|
|
|
|
|
|