//include ('pdf_header_reverse.php'); include('includes/config/config.php'); include('includes/functions.php'); header("Content-type:application/octet-stream"); header("Content-type: application/x-msdownload"); header("Content-Disposition: attachment; filename=monthly_store_expense_report_excel.xls"); header("Pragma: no-cache"); header("Expires: 0"); ?>
Monthly Store Consumption Report | |
For Month: echo $month_name; ?>, |
Sr | Items | Items Rate Per Unit | Previous Balance Qty | Previous Balance Amount | Procured Qty | Procured Amount | Total Qty | Total Amount | Consumption Qty | Consumption Amount | Expired Qty | Expired Amount | Balance Qty | Balance Amount |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
= ++$count ?> | = $row['item_name'] ?> | = number_format((float)cost_latest($row['item_id'], $month, $year), 2, '.', '') ?> | = previous_balance($row['item_id'], $month, $year) ?> | = procurement_details($row['item_id'], $month, $year, $ohc) ?> | = total(previous_balance($row['item_id'], $month, $year), procurement_details($row['item_id'], $month, $year, $ohc)) ?> | = consume_details($row['item_id'], $month, $year, $ohc) ?> | = expiry_details($row['item_id'], $month, $year,$ohc) ?> | = (ceil(balance(total(previous_balance($row['item_id'], $month, $year), procurement_details($row['item_id'], $month, $year, $ohc)), consume_details($row['item_id'], $month, $year, $ohc)))- expiry_details($row['item_id'], $month, $year,$ohc)); ?> | ||||||
Grand Total Amount | =$prv_amt?> | =$cur_amt?> | =$tot_amt?> | =$con_amt?> | =$exp_amt?> | =$bel_amt?> |