Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016008Openbravo ERP03. Procurement managementpublic2011-02-18 14:192011-05-12 13:25
maite 
AinhoaPagola 
highminoralways
closedfixed 
5
2.50MP26 
2.50MP283.0RC7 
Core
No
0016008: 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.
related to defect 00160092.50MP28 closed AinhoaPagola Fields "Min Qty" and "Max Qty" in window Freight should be mandatory 
depends on backport 00167642.50MP28 closed AinhoaPagola Fields "Round Line" and "Round Total" in window Freight Category should be mandatory 
Issue History
2011-02-18 14:19maiteNew Issue
2011-02-18 14:19maiteAssigned To => adrianromero
2011-02-18 14:19maiteModules => Core
2011-02-18 14:22maiteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1508#r1508
2011-02-18 14:32maiteIssue Monitored: networkb
2011-04-12 13:05AinhoaPagolaStatusnew => scheduled
2011-04-12 13:05AinhoaPagolafix_in_branch => pi
2011-04-12 13:05AinhoaPagolaAssigned Toadrianromero => AinhoaPagola
2011-04-12 13:06AinhoaPagolaRelationship addeddepends on 0016009
2011-04-12 13:06AinhoaPagolaRelationship deleteddepends on 0016009
2011-04-12 13:06AinhoaPagolaRelationship addedrelated to 0016009
2011-04-13 12:57AinhoaPagolaNote Added: 0035904
2011-04-14 16:17AinhoaPagolaNote Added: 0035953
2011-04-20 09:37hgbotCheckin
2011-04-20 09:37hgbotNote Added: 0036025
2011-04-20 09:37hgbotStatusscheduled => resolved
2011-04-20 09:37hgbotResolutionopen => fixed
2011-04-20 09:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/1d16cc5f261cf86ad0df52ce0ecda50bff282e76 [^]
2011-05-02 18:48maiteNote Added: 0036291
2011-05-02 18:48maiteStatusresolved => closed
2011-05-02 18:48maiteFixed in Version => 3.0RC7
2011-05-03 00:01anonymoussf_bug_id0 => 3296509
2011-05-12 13:25hudsonbotCheckin
2011-05-12 13:25hudsonbotNote Added: 0036735

Notes
(0035904)
AinhoaPagola   
2011-04-13 12:57   
This issue is going to be solved adding more explicit error messages when the configuration of the Freight Category is not properly done.
(0035953)
AinhoaPagola   
2011-04-14 16:17   
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.
(0036025)
hgbot   
2011-04-20 09:37   
Repository: erp/devel/pi
Changeset: 1d16cc5f261cf86ad0df52ce0ecda50bff282e76
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Thu Apr 14 16:07:08 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1d16cc5f261cf86ad0df52ce0ecda50bff282e76 [^]

Fixes issue 16008, fixes issue 16009. Error control added to M_freight_calculate function

---
M src-db/database/model/functions/M_FREIGHT_CALCULATE.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0036291)
maite   
2011-05-02 18:48   
verified
(0036735)
hudsonbot   
2011-05-12 13:25   
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/c40e579fcd38 [^]

Maturity status: Test