\n");
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
include "form.messages.php";
return;
}
// Setup default values on insert
if ($naction == 'add' || $naction == 'add-combo') {
$initTableName = "supplier_products";
$tarray = initializeTableArray($initTableName);
extract($tarray, EXTR_OVERWRITE);
$package_qty = 1;
$package_cost = '0.00';
$margin_cost = '0.00';
$standard_offline_price = '0.00';
$standard_online_price = '0.00';
$special_price1 = '0.00';
$special_price2 = '0.00';
$special_price3 = '0.00';
$number_of_alternate_prices = 0;
$alternate_price1 = '0.0';
$alternate_price2 = '0.0';
$alternate_price3 = '0.0';
$alternate_price4 = '0.0';
$alternate_price5 = '0.0';
$alternate_price6 = '0.0';
$alternate_price7 = '0.0';
$alternate_price8 = '0.0';
$alternate_price9 = '0.0';
$alternate_price10 = '0.0';
$taxable_product = 'N';
$added_date = date("Y-m-d",time());
$bc_guideline_rating = 'Not Defined';
$min_options = 0;
$max_options = 0;
$min_options2 = 0;
$max_options2 = 0;
$min_options3 = 0;
$max_options3 = 0;
$min_options4 = 0;
$max_options4 = 0;
$min_options5 = 0;
$max_options5 = 0;
$min_options6 = 0;
$max_options6 = 0;
$hot_cold_food = 'Hot';
$status = 'Active';
}
$alternate_price1 = number_format($alternate_price1,2);
$alternate_price2 = number_format($alternate_price2,2);
$alternate_price3 = number_format($alternate_price3,2);
$alternate_price4 = number_format($alternate_price4,2);
$alternate_price5 = number_format($alternate_price5,2);
$alternate_price6 = number_format($alternate_price6,2);
$alternate_price7 = number_format($alternate_price7,2);
$alternate_price8 = number_format($alternate_price8,2);
$alternate_price9 = number_format($alternate_price9,2);
$alternate_price10 = number_format($alternate_price10,2);
$province_text = "Province";
if ($school_record['country'] == 'USA') $province_text = "State";
?>