P.O. Number
| Terms
| Est. Delivery
| Project
|
| | | |
|
Item Code
| Description
| Quantity
| Price
| Amount
|
mysql_select_db('ecosmar_inv', $dbcnx);
$prod_inv = @mysql_query("SELECT ID,invnum,prod_name,prod_desc,prod_qty,prod_price FROM inv_prod 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'];
}//while
$p = 1;
$i = 0;
$prodcount = count($PID);
$pagecount = ceil($prodcount / 10);
while($i < $prodcount){
$amount1 = $prod_qty[$i] * $prod_price[$i];
$amount = sprintf("%01.2f", $amount1);
echo("$prod_name[$i] | $prod_desc[$i]" .
" | $prod_qty[$i]" .
" | $prod_price[$i] | $amount" .
" | ");
$i = $i + 1;
if($i == 9){
$i = 0;
$p = $p + 1;
echo("ECO-$MART Invoice: $inv_num $datus Page 1 of $pagecount | " .
" " .
" " .
"" .
" " .
" | Eco-$mart, Inc. " .
"1-888-732-2798 info@eco-smart.com" .
" | Page $p of $pagecount" .
" Invoice #: $inv_num Invoice Date: $datus" .
" | " .
" " .
"Item Code" .
" | Description" .
" | Quantity" .
" | Price" .
" | Amount" .
" | ");
}
}
?>
|
|
|
|
|
Thank You for Working with Eco-$mart!
|
Subtotal
echo (" " . $subtotal . " ");
?>
|
Purchaser acknowledges that Eco-$mart neither provides nor has any responsibility 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 its 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 through 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. Past due Invoices accrue interest charges of 1.5% per month.
| Sales Tax
echo (" " . $taxtotal . " ");
?>
|
Shipping
echo (" " . $shiptotal . " ");
?>
|
Total
$total = $subtotal + $taxtotal + $shiptotal;
echo (" " . $total . " ");
?>
|
Payments/Credits
|
Balance Due
|
CUSTOMER AUTHORIZATION:
Name___________________________Signature___________________________Date__________
(Please Print)
|
|