本文整理匯總了PHP中Invoice::GetOrderData方法的典型用法代碼示例。如果您正苦於以下問題:PHP Invoice::GetOrderData方法的具體用法?PHP Invoice::GetOrderData怎麽用?PHP Invoice::GetOrderData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Invoice
的用法示例。
在下文中一共展示了Invoice::GetOrderData方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: elseif
if ($orders_data[$order_id]['id_delivery'] == 1) {
// самовывоз
$orders_data[$order_id]['addr_deliv'] = "Самовывоз";
$orders_data[$order_id]['addr_descr'] = $orders_data[$order_id]['descr'];
} elseif ($orders_data[$order_id]['id_delivery'] == 2) {
// Передать автобусом
$orders_data[$order_id]['addr_deliv'] = "Передать автобусом - " . $city['names_regions'];
$orders_data[$order_id]['addr_descr'] = $orders_data[$order_id]['descr'];
} elseif ($orders_data[$order_id]['id_delivery'] == 3) {
// служба доставки
$orders_data[$order_id]['ds'] = $city['shipping_comp'];
$orders_data[$order_id]['addr_deliv'] = $city['names_regions'] . "<br>" . $city['address'];
$orders_data[$order_id]['addr_descr'] = $orders_data[$order_id]['descr'];
}
$Invoice = new Invoice();
$orders_data[$order_id]['invoice_data'] = $Invoice->GetOrderData($order_id);
//Получаем поставщиков
$Supplier = new Suppliers();
$Order->GetSuppliers($order_id);
$suppliers = $Order->list;
foreach ($suppliers as $k => &$s) {
if ($s['id_supplier'] == 0) {
$s['name'] = "Прогноз";
}
$Order->SetListBySupplier($s['id_supplier'], $order_id);
$sum = 0;
$sum_mopt = 0;
$sum_otpusk = 0;
$sum_mopt_otpusk = 0;
if (!isset($suppliers_data[$k])) {
$suppliers[$k]['sweight'] = 0;
示例2: elseif
$city = $Citys->SetFieldsById($ord['id_city']);
if ($ord['id_delivery'] == 1) {
// самовывоз
$addr_deliv = "Самовывоз<br>" . $ord['descr'];
} elseif ($ord['id_delivery'] == 2) {
// Передать автобусом
$addr_deliv = "Передать автобусом - " . $city['names_regions'] . "<br>" . $ord['descr'];
} elseif ($ord['id_delivery'] == 3) {
// служба доставки
$addr_deliv = "Служба доставки - " . $city['shipping_comp'] . "<br>" . $city['names_regions'] . "<br>" . $city['address'];
if (isset($ord['descr'])) {
$addr_deliv .= "<br>" . $ord['descr'];
}
}
$tpl->Assign("addr_deliv", $addr_deliv);
$arr = $Invoice->GetOrderData($id_order);
$tpl->Assign("sum_discount", $arr[0]['sum_discount']);
$order2[$ord['id_order']] = array('id_order' => $ord['id_order'], 'sum' => $arr[0]['sum_discount'], 'id_delivery' => $ord['id_delivery'], 'ds' => $city['shipping_comp']);
$Sertificates = array();
if ($Orders->GetSuppliers($id_order)) {
$suppliers = $Orders->list;
foreach ($suppliers as $k => &$s) {
if ($s['id_supplier'] == 0) {
$s['name'] = "Прогноз";
}
$Orders->SetListBySupplier($s['id_supplier'], $id_order);
$sum = 0;
$sum_mopt = 0;
foreach ($Orders->list as $product) {
if ($product['opt_qty'] > 0 && $product['id_supplier'] == $s['id_supplier']) {
$sum = round($sum + $product['opt_sum'], 2);
示例3: elseif
$city = $Citys->SetFieldsById($ord['id_city']);
if ($ord['id_delivery'] == 1) {
// самовывоз
$addr_deliv = "Самовывоз<br>" . $ord['descr'];
} elseif ($ord['id_delivery'] == 2) {
// Передать автобусом
$addr_deliv = "Передать автобусом - " . $city['names_regions'] . "<br>" . $ord['descr'];
} elseif ($ord['id_delivery'] == 3) {
// служба доставки
$addr_deliv = "Служба доставки - " . $city['shipping_comp'] . "<br>" . $city['names_regions'] . "<br>" . $city['address'];
if (isset($ord['descr'])) {
$addr_deliv .= "<br>" . $ord['descr'];
}
}
$tpl->Assign("addr_deliv", $addr_deliv);
$arr = $Invoice->GetOrderData($id_order, isset($filial) ? $filial : null);
$Sertificates = array();
if ($Order->GetSuppliers($id_order)) {
$suppliers = $Order->list;
$arr2 = array();
foreach ($suppliers as $k => &$s) {
if ($s['id_supplier'] == 0) {
$s['name'] = "Прогноз";
}
$Order->SetListBySupplier($s['id_supplier'], $id_order);
$sum = 0;
$sum_mopt = 0;
foreach ($Order->list as $product) {
if ($product['opt_qty'] > 0 && $product['id_supplier'] == $s['id_supplier']) {
$sum = round($sum + $product['opt_sum'], 2);
}
示例4: isset
}
if (isset($_POST['NDS'])) {
$settings['NDS'] = $_POST['NDS'];
}
$settings['pay_form'] = isset($_POST['pay_form']) ? $_POST['pay_form'] : null;
// Получание информации о заказе
$Order = new Orders();
$Order->SetFieldsById($settings['order']);
$order_details = $Order->fields;
$Customers = new Customers();
$Address = new Address();
$address = $Address->GetAddressById($order_details['id_address']);
$tpl->Assign('address', $address);
if ($_POST['personal_client']) {
$order_details['cont_person'] = $_POST['personal_client'];
} else {
$Customers->SetFieldsById($_POST['client']);
$cstmr = $Customers->fields;
if ($cstmr) {
$tpl->Assign('cstmr', $cstmr);
$Citys = new Citys();
$Citys->SetFieldsById($cstmr['id_city']);
$order_details['address'] = $Citys->fields;
}
}
$Invoice = new Invoice();
$ord = $Invoice->GetOrderData($settings['order']);
$tpl->Assign('order_details', $order_details);
$tpl->Assign('settings', $settings);
$tpl->Assign('order', $ord);
echo $tpl->Parse($GLOBALS['PATH_tpl'] . 'tcpdf.tpl');