PHP Retail Grocery DAILY REPORT FUNCTION
function dailyRep($totalz=17098, $tax=57, $gaskey=1775, $gas=1772, $lot=412, $mo=275, $ccr=545, $nonfood=1270, $oring=23, $dep=15998)
{
$premerch=($totalz - $gaskey - $tax - $lot - $mo - $oring);
$totalsales=($premerch + $lot + $mo);
$nontax=($premerch - $nonfood);
$gasdif=($gas - $gaskey);
$moneys=($premerch + $tax + $gas + $lot + $mo);
$cash=($dep + $ccr);
$cashshort=($dep + $ccr - $moneys);
echo 'Total From Z Reading
$';
echo $totalz;
echo '
Less Overings
$';
echo $oring;
echo '
Less Gas Sales Actual-----------------------Gas Actual
$';
echo $gas;
echo '
Less Gas From Z Tape
$';
echo $gaskey;
echo '
Dif +/-
';
echo $gasdif;
echo '
Equals Non Taxable Grocery Sales
$';
echo $nontax;
echo '
Plus Taxable Grocery Sales
$';
echo $nonfood;
echo '
Equals Total Merchandise Sales--------------Total Merchandise Sales
$';
echo $totalsales;
echo '
Add Tax-------------------------------------Plus Tax
$';
echo $tax;
echo '
Money To Account For-----------MA-------------Money Accounting
$';
echo $moneys;
echo '
Credit Card Report (counts as money)--CCR-----Add To Cash Count
$';
echo $ccr;
echo '
Total Money Counted Including Checks & CCR----Cash Deposit Count
$';
echo $cash;
echo '
Cash +/-(If this line is less than M/A it is Short)Total Over/Short Cash
';
echo $cashshort;
//return $link;
} // end function myFunction()
echo dailyRep(); //OUR FUNCTION CALL
No comments:
Post a Comment