35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?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',
|
|
);
|
|
} |