From 7642b9a18af9b2609626fcdad40c8eafeed1d5a3 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 1 Mar 2026 10:04:21 +0000 Subject: [PATCH] v77 --- create_startup.php | 5 +++-- start_funding_round.php | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/create_startup.php b/create_startup.php index 13e802a..dbcdc28 100644 --- a/create_startup.php +++ b/create_startup.php @@ -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(); } diff --git a/start_funding_round.php b/start_funding_round.php index 6415cd8..339db71 100644 --- a/start_funding_round.php +++ b/start_funding_round.php @@ -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();