[-] BO : fixed bug on product addition

// clean code
This commit is contained in:
aFolletete
2011-12-28 13:46:42 +00:00
parent ee6f8cca92
commit 7362b4c4d4
2 changed files with 2 additions and 18 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ class OrderInvoiceCore extends ObjectModel
public $delivery_number;
/** @var integer */
public $delivery_date;
public $delivery_date = '0000-00-00 00:00:00';
/** @var float */
public $total_discount_tax_excl;
@@ -88,7 +88,7 @@ class OrderInvoiceCore extends ObjectModel
'id_order' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'number' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'delivery_number' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
'delivery_date' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
'delivery_date' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
'total_discount_tax_excl' =>array('type' => self::TYPE_FLOAT),
'total_discount_tax_incl' =>array('type' => self::TYPE_FLOAT),
'total_paid_tax_excl' => array('type' => self::TYPE_FLOAT),