• Adjusted maximum lengths for number columns to provide a little tolerance.
• Removed overflow value for Order_Line.Qty_Received.
1 parent 565472a commit 54d5e51eb8ce458ce4cbcc4c2567024b163c4615
Nigel Stanger authored on 16 May 2016
Showing 6 changed files
View
4
BDL/Test_classes/Assembly/BDL_Test_Assembly.php
'test_value' => "660", ),
'QUANTITY' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'INTEGER', 'SMALLINT' ),
'min_length' => 4,
'max_length' => 4,
'max_length' => 5,
'decimals' => 0,
'underflow' => -1,
'underflow' => 0, // should be 1, but there was a typo in the spec
'overflow' => 10000,
'nullable' => false,
'test_value' => "456", ), );
}
View
2
■■■
BDL/Test_classes/Component/BDL_Test_Component.php
'test_value' => "Some component", ),
'STOCK_COUNT' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'INTEGER' ),
'min_length' => 7,
'max_length' => 7,
'max_length' => 8,
'decimals' => 0,
'underflow' => -1,
'overflow' => 10000000,
'nullable' => false,
View
6
BDL/Test_classes/Order_line/BDL_Test_Order_line.php
'test_value' => "687", ),
'QTY_ORDERED' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'INTEGER', 'SMALLINT' ),
'min_length' => 5,
'max_length' => 5,
'max_length' => 6,
'decimals' => 0,
'underflow' => 0,
'overflow' => 100000,
'nullable' => false,
'min_length' => 5,
'max_length' => 6,
'decimals' => 0,
'underflow' => -1,
'overflow' => 1000000,
// 'overflow' => 1000000,
'nullable' => false,
'test_value' => "20", ),
'PRICE' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'DECIMAL' ),
'min_length' => 6,
'max_length' => 6,
'max_length' => 7,
'decimals' => 2,
'underflow' => -0.01,
'overflow' => 100000.00,
'nullable' => false,
View
8
BDL/Test_classes/Product/BDL_Test_Product.php
'test_value' => "Some product", ),
'STOCK_COUNT' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'INTEGER' ),
'min_length' => 5,
'max_length' => 5,
'max_length' => 6,
'decimals' => 0,
'underflow' => -1,
'overflow' => 100000,
'nullable' => false,
'test_value' => "456", ),
'RESTOCK_LEVEL' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'INTEGER' ),
'min_length' => 5,
'max_length' => 5,
'max_length' => 6,
'decimals' => 0,
'underflow' => -1,
'overflow' => 100000,
'nullable' => true,
'test_value' => "654", ),
'MINIMUM_LEVEL' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'INTEGER' ),
'min_length' => 5,
'max_length' => 5,
'max_length' => 6,
'decimals' => 0,
'underflow' => -1,
'overflow' => 100000,
'nullable' => true,
'test_value' => "456", ),
'LIST_PRICE' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'DECIMAL' ),
'min_length' => 7,
'max_length' => 7,
'max_length' => 8,
'decimals' => 2,
'underflow' => -0.01,
'overflow' => 100000.00,
'nullable' => false,
View
BDL/Test_classes/Sale_line/BDL_Test_Sale_line.php
View
BDL/Test_classes/Staff/BDL_Test_Staff.php