本文整理汇总了PHP中DAO::getTransporterNameByID方法的典型用法代码示例。如果您正苦于以下问题:PHP DAO::getTransporterNameByID方法的具体用法?PHP DAO::getTransporterNameByID怎么用?PHP DAO::getTransporterNameByID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DAO
的用法示例。
在下文中一共展示了DAO::getTransporterNameByID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generateStockTransferReport
function generateStockTransferReport()
{
$dao = new DAO();
$invoiceNo = $_REQUEST['invoiceNo'];
$invoiceDetails = $dao->getStockTransferInvoiceByInvoiceNo($invoiceNo);
$salesDetails = $dao->getStockTransferEntryByInvoiceNo($invoiceNo);
$invoiceDetails['to'] = $dao->getPartyNameByWarehouse($invoiceDetails['to']);
$invoiceDetails['transporter'] = $dao->getTransporterNameByID($invoiceDetails['transporter']);
$totalWeight = 0;
$totalLitres = 0;
foreach ($salesDetails as $key => $data) {
$totalWeight = $totalWeight + $data['totalWeight'];
$totalLitres = $totalLitres + $data['totalLitres'];
}
//echo "<pre>";
//print_r($invoiceDetails);
//print_r($salesDetails);
include "../view/generatedStockTransferReport.php";
}