Merge branch 'ticket-modifEan' into develop
This commit is contained in:
commit
a876e577e8
35
override/classes/OrderDetail.php
Normal file
35
override/classes/OrderDetail.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
class OrderDetail extends OrderDetailCore
|
||||
{
|
||||
/**
|
||||
* @Override
|
||||
* @var 'product_ean13' => 'isEan13'
|
||||
*/
|
||||
protected $fieldsValidate = array (
|
||||
'id_order' => 'isUnsignedId',
|
||||
'product_id' => 'isUnsignedId',
|
||||
'product_attribute_id' => 'isUnsignedId',
|
||||
'product_name' => 'isGenericName',
|
||||
'product_quantity' => 'isInt',
|
||||
'product_quantity_in_stock' => 'isInt',
|
||||
'product_quantity_return' => 'isUnsignedInt',
|
||||
'product_quantity_refunded' => 'isUnsignedInt',
|
||||
'product_quantity_reinjected' => 'isUnsignedInt',
|
||||
'product_price' => 'isPrice',
|
||||
'reduction_percent' => 'isFloat',
|
||||
'reduction_amount' => 'isPrice',
|
||||
'group_reduction' => 'isFloat',
|
||||
'product_quantity_discount' => 'isFloat',
|
||||
'product_ean13' => 'isReference',
|
||||
'product_upc' => 'isUpc',
|
||||
'product_reference' => 'isReference',
|
||||
'product_supplier_reference' => 'isReference',
|
||||
'product_weight' => 'isFloat',
|
||||
'tax_name' => 'isGenericName',
|
||||
'tax_rate' => 'isFloat',
|
||||
'ecotax' => 'isFloat',
|
||||
'ecotax_tax_rate' => 'isFloat',
|
||||
'download_nb' => 'isInt',
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user