get_date_format()))); // Default value from date input $currentDate = $GLOBALS['timedate']->to_display_date($date_from); $date_from = $GLOBALS['timedate']->to_display_date($date_from); $date_to = $GLOBALS['timedate']->to_display_date($date_to); // create & execute smarty $smarty = new Sugar_Smarty (); global $mod_strings; $smarty -> assign( "MOD", $mod_strings ); $smarty -> assign( "DATA", $data); $smarty -> assign( "SUM", $sum); $smarty -> assign( "date_from", $date_from ); $smarty -> assign( "date_to", $date_to ); $smarty -> assign("dateFormat", $Calendar_daFormat); $smarty -> assign("searchByType", $searchByType); $smarty -> assign("contractorId", $contractorId); $smarty -> assign("contractorName", $contractorName); $smarty -> assign("pdfTypeU", $pdfTypeU); $smarty -> assign("pdfTypeK", $pdfTypeK); $smarty -> assign("pdfTypeE", $pdfTypeE); echo $smarty->display ( 'modules/EcmReports/tpls/ListDailySalesCopy.tpl' ); ?>