예제 #1
0
<?php

require_once "../../lib/quotation.class.php";
$objQuotationInfo = new Quotation();
extract($_POST);
$getData = "'','{$indentNo}','{$selSupplier}'";
extract($objQuotationInfo->CreateQuotationMaster($getData));
$getData = '';
$counter = $id;
for ($i = 0; $i < count($item_code); $i++) {
    $getData = "'null',\t'{$counter}',\n\t\t\t\t\t\t\t\t'{$item_code[$i]}',\n\t\t\t\t\t\t\t\t'{$qty[$i]}',\n\t\t\t\t\t\t\t\t'{$origin[$i]}',\n\t\t\t\t\t\t\t\t'{$band[$i]}',\n\t\t\t\t\t\t\t\t'{$deliverytime[$i]}',\n\t\t\t\t\t\t\t\t'{$price[$i]}',\n\t\t\t\t\t\t\t\t'{$warranty[$i]}'";
    $objQuotationInfo->CreateQuotationDetails($getData);
}
echo "Quotation Save successfully";
?>