コード例 #1
0
			$discountcoupon += $rows2['sum'];
			$arraycoupcode[] = strtoupper($rows2['code']);
		}
	}
}*/
if ($discountcoupon < 0) {
    $discountcoupon = 0;
}
$bascetsum = $bascetsum - $discountcoupon;
if ($bascetsum < 0) {
    $bascetsum = 0;
}
$bascetweight = $rows["myweight"];
$mymaterialtype = $bascetsum > 0 ? $rows["mymaterialtype"] : 1;
//вычисляем для страховок
$suminsurance = $order_class->getSuminsurance();
if ($suminsurance > 0) {
    $bascetinsurance = $suminsurance * 0.04;
} else {
    $bascetinsurance = $bascetsum * 0.04;
}
$bascetamount = $orderdetails_class->getCounter();
$postcounter = $orderdetails_class->getPaking();
if ($postcounter) {
    $bascetpostweight = $bascetweight + $WeightPostBox;
} else {
    $bascetpostweight = $bascetweight + $WeightPostLatter;
}
$PostZoneNumber = 0;
$rows = $orderdetails_class->getPost($postindex);
if ($postindex) {