v77
This commit is contained in:
parent
adfd01d74b
commit
7642b9a18a
@ -36,6 +36,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$cofounder_equity_pct = $_POST['cofounder_equity_pct'] ?? 0.0;
|
||||
$cofounder_equity_type = $_POST['cofounder_equity_type'] ?? '';
|
||||
$cofounder_responsibilities = $_POST['cofounder_responsibilities'] ?? '';
|
||||
$repayment_term = (int)($_POST["repayment_term"] ?? 12);
|
||||
$desired_cofounder_experience = $_POST['desired_cofounder_experience'] ?? '';
|
||||
$cofounder_commitment = $_POST['cofounder_commitment'] ?? '';
|
||||
$other_partnership_details = $_POST['other_partnership_details'] ?? '';
|
||||
@ -146,7 +147,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
current_cash_balance, burn_rate,
|
||||
doc_income_statements, doc_balance_sheets, doc_cash_flow_statements, doc_revenue_breakdown, doc_gross_margin,
|
||||
founder_id, recommended_return_rate, recommended_return_reasoning, founder_return_rate, repayment_term, status
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'private')");
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'private')");
|
||||
|
||||
$stmt->execute([
|
||||
$name, $description, $legal_name, $country, $industry, $sub_industry, $business_model, $product_service, $operational_stage,
|
||||
@ -154,7 +155,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$current_cash_balance, $burn_rate,
|
||||
$uploaded_paths['doc_income_statements'], $uploaded_paths['doc_balance_sheets'], $uploaded_paths['doc_cash_flow_statements'],
|
||||
$uploaded_paths['doc_revenue_breakdown'], $uploaded_paths['doc_gross_margin'],
|
||||
$_SESSION['user_id'], $recommended_return_rate, $recommended_return_reasoning, $founder_return_rate
|
||||
$_SESSION['user_id'], $recommended_return_rate, $recommended_return_reasoning, $founder_return_rate, $repayment_term
|
||||
]);
|
||||
$final_id = db()->lastInsertId();
|
||||
}
|
||||
|
||||
@ -41,6 +41,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if ($goal < 100) {
|
||||
$error = "Minimum funding goal is £100.";
|
||||
}
|
||||
$repayment_term = (int)($_POST["repayment_term"] ?? 12);
|
||||
|
||||
if (!$error) {
|
||||
db()->beginTransaction();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user