// check adaptive payments
$payment = $this->MsLoader->MsPayment->getPayments(array(
'order_id' => $order_id,
'seller_id' => $seller_id,
'payment_type' => array(MsPayment::TYPE_SALE),
'payment_status' => array(MsPayment::STATUS_PAID),
'single' => 1
));
if ($payment) {
$sendmail = true;
continue;
}
$balance_entry = $this->MsLoader->MsBalance->getBalanceEntry(
array(
'seller_id' => $seller_id,
'product_id' => $order_product['product_id'],
'order_id' => $order_id,
//'order_product_id' => $order_product['order_product_id'],
'balance_type' => MsBalance::MS_BALANCE_TYPE_SALE
)
);
if (!$balance_entry) {
$order_data = $this->MsLoader->MsOrderData->getOrderData(
array(
'product_id' => $order_product['product_id'],
'order_id' => $order_product['order_id'],
//'order_product_id' => $order_product['order_product_id'],
'single' => 1
)
);