Exemplo n.º 1
0
 /**
  * Отправить один или несколько черновиков исполнителю.
  * Если хотя бы одна не готова к отправке, выходим.
  *
  * @param array $ids   ид. черновиков.
  * @return boolean   успешно?
  */
 function send($ids)
 {
     foreach ($ids as $id) {
         $csbr = new sbr_emp($this->uid, $this->login, $this->session_uid);
         $csbr->initFromId($id, true, false);
         if (!$csbr->checkSendReady()) {
             return false;
         }
     }
     return $this->_draft($ids, FALSE);
 }
Exemplo n.º 2
0
if (!$reqv->id) {
    header("Location: /403.php");
    exit;
}
$sum = $reqv->ammount;
//if (is_admin()||is_admin_sm()) {
if (get_uid(0) != $reqv->user_id && hasPermissions('bank')) {
    $acc = new account();
    $acc->GetInfo($reqv->user_id);
    $acc_num = $acc->id;
} else {
    $acc_num = $bill->acc['id'];
}
$billCode = 'Б-' . $acc_num . '-' . ($reqv->bill_no + 1);
if ($reqv->sbr_id) {
    $sbr = new sbr_emp($reqv->user_id);
    if ($sbr->initFromId($reqv->sbr_id, false, false, NULL, false)) {
        $contract_num = $sbr->getContractNum();
        $billCode = 'Б-' . $contract_num;
        $sbr_nds = $sbr->getCommNds($sbr_comm);
    }
}
$ord_num = $reqv->id;
$sum = round($sum, 2);
if ($sbr_nds) {
    $sbr_nds = round($sbr_nds, 2);
    $sbr_comm = round($sbr_comm, 2);
}
$stc = new static_compress();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Exemplo n.º 3
0
    $print_mode = ${$print_mode};
}
if (!$_SESSION['login']) {
    header('Location: /fbd.php');
    exit;
}
$bp = new bank_payments();
if ($id) {
    $bp->GetRow($id, hasPermissions('bankpayments') && hasPermissions('adm') ? '' : " AND user_id = {$uid}");
}
if (!$bp->id) {
    header('Location: /404.php');
    exit;
}
if ($bp->sbr_id) {
    $sbr = new sbr_emp($bp->user_id);
    if ($sbr->initFromId($bp->sbr_id, false, false, null, false)) {
        $contract_num = $sbr->getContractNum();
        $sbr_nds = $sbr->getCommNds($sbr_comm);
    }
}
$bp->sum = round($bp->sum, 2);
$sum_rk = preg_split('/[.,]/', $bp->sum);
$sum_rk[1] = str_pad($sum_rk[1], 2, '0');
$stc = new static_compress();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Удаленная работа (фри-ланс) на Free-lance.ru</title>
		<meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/>