P.O. Number
| Terms
| Due Date
| Project #
|
| | | |
|
Item Code
| Description
| Quantity
| Price
| Amount
|
mysql_select_db('ecosmar_inv', $dbcnx);
$prod_inv = @mysql_query("SELECT ID,prod_name,prod_desc,prod_qty,prod_price,dtup,dtnum,status FROM prod_inv WHERE invnum='$invnum'");
if (!prod_inv) {
echo('Error retrieving Product Data. ' . 'Error: '. mysql_error(). ' ');
}
while($rowp = mysql_fetch_array($prod_inv)){
$PID = $rowp['ID'];
$prod_name = $rowp['prod_name'];
$prod_desc = $rowp['prod_desc'];
$prod_qty = $rowp['prod_qty'];
$prod_price = $rowp['prod_price'];
$dtup = $rowp['dtup'];
$dtnum = $rowp['dtnum'];
$status = $rowp['status'];
$amount = $prod_qty * $prod_price;
echo("$prod_name | $prod_desc" .
" | $prod_qty" .
" | $prod_price | $amount" .
" | ");
$full_amount[] = $amount;
}
?>
|
|
|
|
|
Thank you for working with Eco-$mart.
|
Subtotal
$am_count = count($full_amount);
$i = 0;
$subtotal = 0;
while($i < $am_count){
$subtotal = $subtotal + $full_amount[$i];
$i++;
}
echo (" " . $subtotal . " ");
?>
|
By acceptance of this invoice, purchaser acknowledges and agrees that Eco-$mart neither provides nor has any responsiblilty for any product or installation warranties, oral or written, expressed or implied, including the IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Products are warranted by the manufacturer only and in the event of any product or installation defects, purchaser shall seek remedies solely from the manufacturer or installer, regardless of the legal theory or recovery. Additionally, in the event of a dispute the prevailing party shall be entitled to reimbursement of its attorneys fees and costs from the non-prevailing party, including all appeals. Purchaser agrees that Eco-$mart’s liability in any event shall be limited to 10% of the Invoice amount, or $1000.00, whichever is less.
| Sales Tax
if($State == 'FL'){
$tax1 = .07;
}else{
$tax1 = 0;
}
$tax = $subtotal * $tax1;
echo (" " . $tax . " ");
?>
|
Total
$total = $subtotal + $tax;
echo (" " . $total . " ");
?>
|
Payments/Credits
|
Balance Due
|
|