$val) { $text_id = $val['value']; $arr_sum_all[$text_id] = 0; } $sum_thukhac = 0; $sum_chikhac = 0; ?>
$val) {?> fetchRow($rs)){ $stt++; $tong_thukhac = 0; $tong_chikhac = 0; ?> $val) { $text_id = $val['value'].'@'.$rw['NHDT_ID']; if(isset($arrBC[$text_id] )){ $doanhthu = $arrBC[$text_id]['DOANHTHU']; }else{ $doanhthu =0; } $tongcong_1+=$doanhthu; ?> $val) { $text_id = $val['value']; if(isset($arrBC_phuthu[$text_id]) && $arrBC_phuthu[$text_id] ){ $doanhthu = $arrBC_phuthu[$text_id]['PHUTHU']; }else{ $doanhthu =0; } $tongcong_1+=$doanhthu; ?> $val) { $text_id = $val['value']; if(isset($arrBC_vat[$text_id]) && $arrBC_vat[$text_id] ){ $doanhthu = $arrBC_vat[$text_id]['VAT']; }else{ $doanhthu =0; } $tongcong_1+=$doanhthu; ?> $val) { if(isset($arrBC_tong[$val['value']] )){ $text_id = $val['value']; if(isset($arrBC_phuthu[$text_id])){ $arrBC_tong[$val['value']]['DOANHTHU']+=$arrBC_phuthu[$text_id]['PHUTHU']; } if(isset($arrBC_vat[$text_id])){ $arrBC_tong[$val['value']]['DOANHTHU']+=$arrBC_vat[$text_id]['VAT']; } $arr_sum_all[$val['value']] += $arrBC_tong[$val['value']]['DOANHTHU']; $doanhthu_lhd = $arrBC_tong[$val['value']]['DOANHTHU']; }else{ $doanhthu_lhd =0; } $tongcong_2+=$doanhthu_lhd; ?> $val) { $text_id = $val['value']; $arr_tongthunotm[$text_id] = 0; } foreach($arrBC_thunotm as $idklt=>$info){ ?> $val) { $text_id = $val['value']; if(isset($info[$text_id])){ $arr_tongthunotm[$text_id] += $info[$text_id]; $tongcong_1 = $info[$text_id]; } ?> $val) { $text_id = $val['value']; $arr_tongthucoctm[$text_id] = 0; } foreach($arrBC_coc as $idklt=>$info){ ?> $val) { $text_id = $val['value']; if(isset($info[$text_id])){ $arr_tongthucoctm[$text_id] += $info[$text_id]; $tongcong_1 = $info[$text_id]; } ?> fetchRow($rsthu)){ $tong_thukhac += $info['THU_SOTIEN']; ?> $val) { ?> $val) { $text_id = $val['value']; $tongcong_2+=$arr_tongthunotm[$text_id] + $arr_tongthucoctm[$text_id]; $arr_sum_all[$text_id] += $arr_tongthunotm[$text_id] + $arr_tongthucoctm[$text_id]; ?> $val) { $text_id = $val['value']; $arr_tongchiphi[$text_id] = 0; } ?> $val) { $text_id = $val['value']; if(isset($arrBC_giamgia[$text_id]['GIAMGIA'] )){ $giamgia = $arrBC_giamgia[$text_id]['GIAMGIA']; }else{ $giamgia =0; } $arr_tongchiphi[$text_id] += $giamgia; $tongcong_1+=$giamgia; ?> $val) { $text_id = $val['value']; if(isset($arrBC_giamgia[$text_id]['TIEPKHACH'] )){ $tiepkhach = $arrBC_giamgia[$text_id]['TIEPKHACH']; }else{ $tiepkhach =0; } $arr_tongchiphi[$text_id] += $tiepkhach; $tongcong_1+=$tiepkhach; ?> $val) { $text_id = $val['value']; if(isset($arrBC_tracoc[$text_id])){ $tracoc = $arrBC_tracoc[$text_id]; $tongcong_1 += $tracoc; $tong_tracoc += $tracoc; }else{ $tracoc = 0; } $arr_tongchiphi[$text_id] += $tracoc; ?> fetchRow($rschi )){ $tong_chikhac += $info['CP_SOTIEN']; ?> $val) { ?> $val) { $text_id = $val['value']; $arr_sum_all[$text_id] -= $arr_tongchiphi[$text_id]; $tongcong_2+=$arr_tongchiphi[$text_id]; ?> $val) { $text_id = $val['value']; $arr_tongno[$text_id] = 0; } foreach($arrBC_no as $idklt=>$info){ ?> $val) { $text_id = $val['value']; if(isset($info[$text_id])){ $arr_tongno[$text_id] += $info[$text_id]; $tongcong_1 = $info[$text_id]; } ?> $val) { $text_id = $val['value']; $tongcong_2+=$arr_tongno[$text_id]; $arr_sum_all[$text_id] -= $arr_tongno[$text_id]; ?> $val) { $text_id = $val['value']; $arr_tongthe[$text_id] = 0; } foreach($arrBC_the as $idklt=>$info){ ?> $val) { $text_id = $val['value']; if(isset($info[$text_id])){ $arr_tongthe[$text_id] += $info[$text_id]; $tongcong_1 = $info[$text_id]; } ?> $val) { $text_id = $val['value']; $tongcong_2+=$arr_tongthe[$text_id]; $arr_sum_all[$text_id] -= $arr_tongthe[$text_id]; ?> $info){ ?> $val) { $text_id = $val['value']; if(isset($info[$text_id])){ $arr_tongthe_coc[$text_id] += $info[$text_id]; $tongcong_1 = $info[$text_id]; } ?> $val) { $text_id = $val['value']; $tongcong_2+=$arr_tongthe_coc[$text_id]; // $arr_sum_all[$text_id] -= $arr_tongthe_coc[$text_id]; ?> $info){ ?> $val) { $text_id = $val['value']; if(isset($info[$text_id])){ $arr_tongthunothe[$text_id] += $info[$text_id]; $tongcong_1 = $info[$text_id]; } ?> $val) { $text_id = $val['value']; $tongcong_2+=$arr_tongthunothe[$text_id]; // $arr_sum_all[$text_id] -= $arr_tongthunothe[$text_id]; ?> $val) { $text_id = $val['value']; $tongcong_2+=$arr_sum_all[$text_id]; ?>
Chọn thời điểm: Từ buildHourSelect('Search_TuNgay_TuGio',$search_tungay_tugio,'cbo width_50').":"; echo $htmlHelper->buildMinuteSelectFull('Search_TuNgay_TuPhut',$search_tungay_tuphut,'cbo width_50')." "; echo $htmlHelper->buildInput('Search_TuNgay',$search_tungay,'textbox width_100 datepicker','maxlength=\'10\'',false); echo " đến "; echo $htmlHelper->buildHourSelect('Search_DenNgay_DenGio',$search_denngay_dengio,'cbo width_50').":"; echo $htmlHelper->buildMinuteSelectFull('Search_DenNgay_DenPhut',$search_denngay_denphut,'cbo width_50')." "; echo $htmlHelper->buildInput('Search_DenNgay',$search_denngay,'textbox width_100 datepicker','maxlength=\'10\'',false); ?>  
Khoản mục Khác Tổng cộng
decodeSpecialChar($rw['NHDT_TEN']);?> -
Phụ thu -
Thuế GTGT -
TỔNG DOANH THU -
-
Thu cọc -
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 -
(".WebHelper::decodeSpecialChar($info['CP_GHICHU']).")"; } ?> 0
CHI PHÍ (-)
-
KHÁCH NỢ: -
CỘNG KHÁCH THẺ TRONG NGÀY: -
Thu cọc -
CỘNG KHÁCH CỌC THẺ: -
Thu nợ (thẻ/ck) -
CỘNG KHÁCH THANH TOÁN NỢ (TRẢ THẺ): -
TỔNG CỘNG: