Код |
---|
// You can uncomment this code if you want PAYED flag to be set automatically /* $arOrder = CSaleOrder::GetByID($ORDER_ID); if ($arOrder["PRICE"] == $arFields["PS_SUM"] && $arFields["PS_STATUS"] == "Y") { $arFields["PAYED"] = "Y"; $arFields["DATE_PAYED"] = Date(CDatabase::DateFormatToPHP(CLang::GetDateFormat("FULL", LANG))); $arFields["EMP_PAYED_ID"] = false; } */ |