$dbOrders = CSaleOrder::GetList(
array("ID" => "ASC"),
array(
"ALLOW_DELIVERY" => "Y",
">=DATE_ALLOW_DELIVERY" => $dateFrom,
"<DATE_ALLOW_DELIVERY" => $dateTo,
"AFFILIATE_ID" => $affiliateID,
"LID" => $arAffiliate["SITE_ID"],
"CANCELED" => "N"
),
false,
false,
array(
"ID",
"LID",
"PRICE_DELIVERY",
"PRICE",
"CURRENCY",
"TAX_VALUE",
"AFFILIATE_ID",
"BASKET_QUANTITY",
"BASKET_PRODUCT_ID",
"BASKET_MODULE",
"BASKET_PRICE",
"BASKET_CURRENCY",
"BASKET_DISCOUNT_PRICE"
)
); |