|
|
@ -123,7 +123,7 @@ class Vendor_money extends CI_Controller {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
foreach ($final_table as $line => $row) {
|
|
|
|
foreach ($final_table as $line => $row) {
|
|
|
|
if ($row['vendor'] == $vendor) {
|
|
|
|
if ($row['vendor'] == $vendor) {
|
|
|
|
$ret['trippest']['trippest_sum'] = bcadd($ret['trippest']['trippest_sum'], $row['haina_receipt']);
|
|
|
|
$ret['trippest']['trippest_sum'] = bcadd($ret['trippest']['trippest_sum'], $row['sync_haina_receipt']);
|
|
|
|
$ret['trippest']['vendor_sum'] = bcadd($ret['trippest']['vendor_sum'], $row['vendor_receipt']);
|
|
|
|
$ret['trippest']['vendor_sum'] = bcadd($ret['trippest']['vendor_sum'], $row['vendor_receipt']);
|
|
|
|
$ret['trippest']['vendor_cost'] = bcadd($ret['trippest']['vendor_cost'], $row['group_vendor_cost']);
|
|
|
|
$ret['trippest']['vendor_cost'] = bcadd($ret['trippest']['vendor_cost'], $row['group_vendor_cost']);
|
|
|
|
$ret['trippest']['other_sum'] = bcadd($ret['trippest']['other_sum'], $row['other_price_RMB']);
|
|
|
|
$ret['trippest']['other_sum'] = bcadd($ret['trippest']['other_sum'], $row['other_price_RMB']);
|
|
|
@ -250,11 +250,11 @@ class Vendor_money extends CI_Controller {
|
|
|
|
->SetCellValue('A'.$rowCount, ($rowCount-1))
|
|
|
|
->SetCellValue('A'.$rowCount, ($rowCount-1))
|
|
|
|
// ->SetCellValue('A'.$rowCount, $row->pn_sn)
|
|
|
|
// ->SetCellValue('A'.$rowCount, $row->pn_sn)
|
|
|
|
->setCellValueExplicit('B'.$rowCount, $row['GRI_No'],PHPExcel_Cell_DataType::TYPE_STRING)
|
|
|
|
->setCellValueExplicit('B'.$rowCount, $row['GRI_No'],PHPExcel_Cell_DataType::TYPE_STRING)
|
|
|
|
->setCellValue('C'.$rowCount, number_format($row['haina_receipt'], 2, ".", ""))
|
|
|
|
->setCellValue('C'.$rowCount, number_format($row['sync_haina_receipt'], 2, ".", ""))
|
|
|
|
->setCellValue('D'.$rowCount, number_format($row['vendor_receipt'], 2, ".", ""))
|
|
|
|
->setCellValue('D'.$rowCount, number_format($row['vendor_receipt'], 2, ".", ""))
|
|
|
|
->SetCellValue('E'.$rowCount, 0)
|
|
|
|
->SetCellValue('E'.$rowCount, 0)
|
|
|
|
->SetCellValue('F'.$rowCount, $row['group_vendor_cost'])
|
|
|
|
->SetCellValue('F'.$rowCount, $row['group_vendor_cost'])
|
|
|
|
->setCellValue('G'.$rowCount, bcsub(bcadd($row['vendor_receipt'],$row['haina_receipt']),$row['group_vendor_cost']))
|
|
|
|
->setCellValue('G'.$rowCount, bcsub(bcadd($row['vendor_receipt'],$row['sync_haina_receipt']),$row['group_vendor_cost']))
|
|
|
|
;
|
|
|
|
;
|
|
|
|
$rowCount++;
|
|
|
|
$rowCount++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|