mirror of https://github.com/itflow-org/itflow
13 lines
680 B
PHP
13 lines
680 B
PHP
<?php
|
|
$name = sanitizeInput($_POST['name']);
|
|
$type = sanitizeInput($_POST['type']);
|
|
$website = preg_replace("(^https?://)", "", sanitizeInput($_POST['website']));
|
|
$referral = sanitizeInput($_POST['referral']);
|
|
$rate = floatval($_POST['rate'] ?? 0);
|
|
$currency_code = sanitizeInput($_POST['currency_code'] ?? $session_company_currency); // So we dont have to to have a hidden form input if module sales is disabled
|
|
$net_terms = intval($_POST['net_terms'] ?? $config_default_net_terms);
|
|
$tax_id_number = sanitizeInput($_POST['tax_id_number'] ?? '');
|
|
$abbreviation = sanitizeInput($_POST['abbreviation']);
|
|
$notes = sanitizeInput($_POST['notes']);
|
|
$lead = intval($_POST['lead'] ?? 0);
|