- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
$res2=CSaleBasket::GetList(array(), array(
"PRODUCT_ID"=>$record["PRODUCT_ID"],
"!ORDER_ID"=>0
));
$reserverY = array("N", "A", "C", "B", "D", "P", "R", "S", "T", "E");
while($record2=$res2->GetNext()){
$ordNext = CSaleOrder::GetList(array(), array("ID"=>$record2['ORDER_ID']))->GetNext();
if(in_array($ordNext['STATUS_ID'], $reserverY) && $ordNext['CANCELED'] != 'Y')
{
$product["QUANTITY_RESERVED"] += $record2['QUANTITY'];
}
}
turbosnail 11.03.2016 11:26 # 0