// OrderInvoice PDF compliant
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10830 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -826,8 +826,20 @@ class OrderCore extends ObjectModel
|
||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 1.5.0.2
|
||||
*
|
||||
* @static
|
||||
* @param $date_from
|
||||
* @param $date_to
|
||||
* @param $id_customer
|
||||
* @param $type
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getOrdersIdInvoiceByDate($date_from, $date_to, $id_customer = NULL, $type = NULL)
|
||||
{
|
||||
Tools::displayAsDeprecated();
|
||||
$sql = 'SELECT `id_order`
|
||||
FROM `'._DB_PREFIX_.'orders`
|
||||
WHERE DATE_ADD(invoice_date, INTERVAL -1 DAY) <= \''.pSQL($date_to).'\' AND invoice_date >= \''.pSQL($date_from).'\'
|
||||
|
||||
Reference in New Issue
Block a user