sub(new DateInterval('P3Y')); $currentTo = @$_GET['date_to'] ? : $stop->format('t.m.Y'); $currentFrom = @$_GET['date_from'] ? : $start->format('01.m.Y'); ?>


Enter Date Enter Date
format('Y-m-01') . '\'', '\'' . $stop->format('Y-m-t') . '\'', ); if($from = @$_GET['date_from']) { $fromDate = new DateTime($from); $additionalWhereConditions[0] = '\'' . $fromDate->format('Y-m-d') . '\''; } if($to = @$_GET['date_to']) { $toDate = new DateTime($to); $additionalWhereConditions[1] = '\'' . $toDate->format('Y-m-d') . '\''; } if($_GET['kasjer']!=''){ $kasjer=" and `created_by`='".$_GET['kasjer']."'"; } $additionalWhere = '`date_entered` BETWEEN ' . implode(' AND ', $additionalWhereConditions)." and `ecmcash_id`='".$_GET['ecmcash_id']."'".$kasjer; $query = ' SELECT `description`,`ecmkpkw_name`,`amount`,`document_no`, `parent_address_street`,`parent_address_city`,`parent_address_postalcode`, `parent_address_country`,`parent_contact_name`,`parent_contact_title`, `date_entered`,`dir`,`parent_name` FROM `ecmkpkw` WHERE ' . (additionalWhere ? ($additionalWhere) : '') . ' ORDER BY `date_entered` ASC; '; // echo $query; //exit; $result = $db->query($query); $query_bo = "SELECT SUM(IF(dir = 0, amount, -amount)) AS `sum` FROM `ecmkpkw` WHERE `date_entered` < ".$additionalWhereConditions[0]." and `ecmcash_id`='".$_GET['ecmcash_id']."'".$kasjer; //echo $query_bo; exit; $result_bo = $db->query($query_bo); if($row_bo = $db->fetchByAssoc($db->query($query_bo))) { $bo = $row_bo["sum"]; //ECHO $row["sum"]; } ?> num_rows > 0) : ?>


format('01/m/Y')." - ".$toDate->format('t/m/Y'); ?> retrieve($_GET['kasjer']); echo ", ".translate('LBL_CASH_USER', 'EcmKpkw').": ". $us->full_name; } ?>


fetchByAssoc($result)) : ?>
   
  :  
  :  

Brak wyników dla danego okresu.