Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016009Openbravo ERP03. Procurement managementpublic2011-02-18 14:232011-05-12 13:25
maite 
AinhoaPagola 
highminoralways
closedfixed 
5
2.50MP26 
2.50MP283.0RC7 
Core
No
0016009: Fields "Min Qty" and "Max Qty" in window Freight should be mandatory
Fields "Min Qty" and "Max Qty" in window Freight 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 filling all fields
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
  Min qty=empty
  Max Qty=empty
  Freight amount=1.5
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
In Calculate Freight Amount Process pop-up check "calculate quantity".

You will obtain error.

If you fill necessary fields you will be able to run process
No tags attached.
depends on backport 00167612.50MP28 closed AinhoaPagola Fields "Min Qty" and "Max Qty" in window Freight should be mandatory 
related to defect 00160082.50MP28 closed AinhoaPagola Fields "Round Line" and "Round Total" in window Freight Category should be mandatory 
Issue History
2011-02-18 14:23maiteNew Issue
2011-02-18 14:23maiteAssigned To => adrianromero
2011-02-18 14:23maiteModules => Core
2011-02-18 14:32maiteIssue Monitored: networkb
2011-04-07 12:52AinhoaPagolaAssigned Toadrianromero => AinhoaPagola
2011-04-12 12:21AinhoaPagolaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=1816#r1816
2011-04-12 12:22AinhoaPagolaStatusnew => scheduled
2011-04-12 12:22AinhoaPagolafix_in_branch => pi
2011-04-12 13:06AinhoaPagolaRelationship addedblocks 0016008
2011-04-12 13:06AinhoaPagolaRelationship deletedblocks 0016008
2011-04-12 13:06AinhoaPagolaRelationship addedrelated to 0016008
2011-04-13 12:57AinhoaPagolaNote Added: 0035902
2011-04-13 12:58AinhoaPagolaNote Edited: 0035902bug_revision_view_page.php?bugnote_id=0035902#r1840
2011-04-14 16:17AinhoaPagolaNote Added: 0035954
2011-04-20 09:37hgbotCheckin
2011-04-20 09:37hgbotNote Added: 0036026
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:47maiteNote Added: 0036290
2011-05-02 18:47maiteStatusresolved => closed
2011-05-02 18:47maiteFixed in Version => 3.0RC7
2011-05-03 00:02anonymoussf_bug_id0 => 3296511
2011-05-12 13:25hudsonbotCheckin
2011-05-12 13:25hudsonbotNote Added: 0036736

Notes
(0035902)
AinhoaPagola   
2011-04-13 12:57   
(edited on: 2011-04-13 12:58)
This issue is going to be solved adding more explicit error messages when the configuration of the Shipment company - Freight is not properly done.

(0035954)
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.
(0036026)
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
---
(0036290)
maite   
2011-05-02 18:47   
verified
(0036736)
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