$date) { foreach ($arrLHD as $k => $val) { $text_id = $val['value']; $arr_tongthunotm[$date][$text_id] = 0; $arr_tongthucoctm[$date][$text_id] = 0; $arr_sum_all[$date][$text_id] = 0; $arr_tongchiphi[$date][$text_id] = 0; $arr_tongno[$date][$text_id] = 0; $arr_tongthe[$date][$text_id] = 0; } } ?>
$date) {?> $date) { foreach ($arrLHD as $k => $val) { ?> fetchRow($rs)){ $stt++; ?> $date) { $tong_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value'] . '@' . $rw['NHDT_ID']; if (isset($arrBC[$date][$text_id])) { $doanhthu = $arrBC[$date][$text_id]['DOANHTHU']; } else { $doanhthu = 0; } $tongcong_ndt += $doanhthu; $tong_ngay += $doanhthu; ?> $date) { $phuthu_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; if (isset($arrBC_phuthu[$date][$text_id])) { $doanhthu = $arrBC_phuthu[$date][$text_id]['PHUTHU']; } else { $doanhthu = 0; } $tongcong_1 += $doanhthu; $phuthu_ngay += $doanhthu; $arr_sum_all[$date][$text_id] += $doanhthu; ?> $date) { $tong_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; if (isset($arrBC_tong[$date][$text_id])) { $doanhthu = $arrBC_tong[$date][$text_id]['DOANHTHU']; } else { $doanhthu = 0; } if (isset($arrBC_phuthu[$date][$text_id])) { $doanhthu += $arrBC_phuthu[$date][$text_id]['PHUTHU']; } $tongcong_2 += $doanhthu; $tong_ngay += $doanhthu; $arr_sum_all[$date][$text_id] += $doanhthu; ?> $date) { foreach($arrBC_thunotm[$date] as $idklt=>$info){ foreach ($arrLHD as $k => $val) { $text_id = $val['value']; if (isset($info[$text_id])) { $arr_tongthunotm[$date][$text_id] += $info[$text_id]; } } } foreach($arrBC_coc[$date] as $idklt=>$info){ foreach ($arrLHD as $k => $val) { $text_id = $val['value']; if (isset($info[$text_id])) { $arr_tongthucoctm[$date][$text_id] += $info[$text_id]; } } } foreach ($arrBC_no[$date] as $idklt => $info) { foreach ($arrLHD as $k => $val) { $text_id = $val['value']; if (isset($info[$text_id])) { $arr_tongno[$date][$text_id] += $info[$text_id]; } } } foreach ($arrBC_the[$date] as $idklt => $info) { foreach ($arrLHD as $k => $val) { $text_id = $val['value']; if (isset($info[$text_id])) { $arr_tongthe[$date][$text_id] += $info[$text_id]; } } } } ?> $date) { $tong_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; $tongcong_2+=$arr_tongthunotm[$date][$text_id] + $arr_tongthucoctm[$date][$text_id]; $tong_ngay +=$arr_tongthunotm[$date][$text_id] + $arr_tongthucoctm[$date][$text_id]; $arr_sum_all[$date][$text_id] += $arr_tongthunotm[$date][$text_id] + $arr_tongthucoctm[$date][$text_id]; ?> $date) { $tong_giamgia_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; if(isset($arrBC_giamgia[$date][$text_id]['GIAMGIA'] )){ $giamgia = $arrBC_giamgia[$date][$text_id]['GIAMGIA']; }else{ $giamgia =0; } $arr_tongchiphi[$date][$text_id] += $giamgia; $tong_giamgia_ngay += $giamgia; $tongcong_1+=$giamgia; ?> $date) { $tong_giamgia_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; if(isset($arrBC_giamgia[$date][$text_id]['TIEPKHACH'] )){ $tiepkhach = $arrBC_giamgia[$date][$text_id]['TIEPKHACH']; }else{ $tiepkhach =0; } $arr_tongchiphi[$date][$text_id] += $tiepkhach; $tong_giamgia_ngay += $tiepkhach; $tongcong_1+=$tiepkhach; ?> $date) { $tong_chitra_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; if(isset($arrBC_tracoc[$date][$text_id])){ $tracoc = $arrBC_tracoc[$date][$text_id]; $tong_tracoc += $tracoc; }else{ $tracoc = 0; } $arr_tongchiphi[$date][$text_id] += $tracoc; $tong_chitra_ngay += $tracoc; ?> $date) { $tong_cong += $tong_chiphi[$date]; foreach ($arrLHD as $k => $val) { ?> $date) { $tong_chiphi_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; $arr_sum_all[$date][$text_id] -= $arr_tongchiphi[$date][$text_id]; $tongcong_2+=$arr_tongchiphi[$date][$text_id]; $tong_chiphi_ngay +=$arr_tongchiphi[$date][$text_id]; ?> $date) { }?> $date) { $no_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; $tongcong_2+=$arr_tongno[$date][$text_id]; $arr_sum_all[$date][$text_id] -= $arr_tongno[$date][$text_id]; $no_ngay += $arr_tongno[$date][$text_id]; ?> $date) { $khach_the_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; $tongcong_2 += $arr_tongthe[$date][$text_id]; $arr_sum_all[$date][$text_id] -= $arr_tongthe[$date][$text_id]; $khach_the_ngay += $arr_tongthe[$date][$text_id]; ?> $date) { $tongcong_ngay = 0; foreach ($arrLHD as $k => $val) { $text_id = $val['value']; $tongcong_2 += $arr_sum_all[$date][$text_id]; $tongcong_ngay += $arr_sum_all[$date][$text_id]; ?>
Chọn thời điểm: Từ buildInput('Search_TuNgay',$search_tungay,'textbox width_100 datepicker','maxlength=\'10\'',false); echo " đến "; echo $htmlHelper->buildInput('Search_DenNgay',$search_denngay,'textbox width_100 datepicker','maxlength=\'10\'',false); ?>
Khoản mục Tổng cộng
Khác Tổng cộng
decodeSpecialChar($rw['NHDT_TEN']);?> 0
Phụ thu -
TỔNG DOANH THU 0
THU NỢ + THU KHÁC + THU CỌC TIỀN MẶT:
Chi phí giảm giá -
Chi phí tiếp khách -
Chi trả tiền cọc -
Tổng chi phí 0
CHI PHÍ (-)
KHÁCH NỢ: -
CỘNG KHÁCH TRẢ THẺ: -
TỔNG CỘNG: