Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016764Openbravo ERP03. Procurement managementpublic2011-02-18 14:192011-04-15 15:11
maite 
AinhoaPagola 
highminoralways
closedfixed 
5
2.50MP26 
2.50MP282.50MP29 
Core
No
0016764: Fields "Round Line" and "Round Total" in window Freight Category should be mandatory
Fields "Round Line" and "Round Total" in window Freight Category should be mandatory as they are used as mandatory comparisons in function m_freight_calculate.
If you don't fill them you will obtain error.
1. Warehouse Management || Setup || Freight Category || Freight Category : define freight category and leave fields "Round Line" and "Round Total" empty
2. Warehouse Management || Setup || Shipping Company || Shipping Company : define shipping company
3. Warehouse Management || Setup || Shipping Company || Shipping Company >> Freight :
  Freight Category already created
  Currency = EUR
  Country=Spain
  Desti. Country=Spain
  Region=Navarra
  Desti. Region=Navarra
  Freight amount=1.5
  Min qty=0
  Max Qty=100
4. Procurement Management || Transactions || Goods Receipt || Header : create header
  BP=mcgiver
  Warehouse=Main warehouse
  Freight cost=calculated
  Choose shipping company
  Choose freight category
  Freight currency=EUR
  number of packages=empty
5.Navigate to Warehouse used and set Location with Region Navarra
6.Navigate to mcgiver and set Location with Region Navarra
7. Procurement Management || Transactions || Goods Receipt || Header >> Lines : create line of 10 hats
8. Come back to header and run "Calculate Freight Amount" process

You will obtain error.

If you fill necessary fields you will be able to run process
  Freight
No tags attached.
blocks defect 00160082.50MP28 closed AinhoaPagola Fields "Round Line" and "Round Total" in window Freight Category should be mandatory 
Issue History
2011-04-12 13:05AinhoaPagolaTypedefect => backport
2011-04-12 13:05AinhoaPagolafix_in_branch => 2.50
2011-04-12 13:06AinhoaPagolaAssigned Toadrianromero => AinhoaPagola
2011-04-14 16:01hgbotCheckin
2011-04-14 16:01hgbotNote Added: 0035950
2011-04-14 16:01hgbotStatusscheduled => resolved
2011-04-14 16:01hgbotResolutionopen => fixed
2011-04-14 16:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/ae1a33f19985c0ed177fa28b46aa3e3b454e4a0b [^]
2011-04-14 16:04AinhoaPagolaNote Added: 0035952
2011-04-15 15:11maiteNote Added: 0035992
2011-04-15 15:11maiteStatusresolved => closed
2011-04-15 15:11maiteFixed in Version => 2.50MP29

Notes
(0035950)
hgbot   
2011-04-14 16:01   
Repository: erp/stable/2.50
Changeset: ae1a33f19985c0ed177fa28b46aa3e3b454e4a0b
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Thu Apr 14 12:43:08 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/ae1a33f19985c0ed177fa28b46aa3e3b454e4a0b [^]

Fixes issue 16764, 16761. Error control addedto function m_freight_calculate

---
M src-db/database/model/functions/M_FREIGHT_CALCULATE.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0035952)
AinhoaPagola   
2011-04-14 16:04   
Error control has been added to m_freight_calculate function.
Depending on the source of the error a more explicit message will be displayed.
The function now captures errors when:
- No paramenter is selected
- No freight category is selected
- The freight category has no rounding or UOM selected
- The business partner has no region on it's location
- The warehouse has no region on it's location
- The shipping company has no freight configured for the date

If "find cheaper" is selected, error when:
- There is no match between the regions selected or there is no package number set.

If "calculate quantity" is selected, error when:
- No shipping company is selected
- The freight of the shipping company has no region, max or min quantity set.
- If UOM is palet, error when there is a product with no units per palet set.
- There is no match between selected regions.
(0035992)
maite   
2011-04-15 15:11   
verified