🐞 fix: Update comment handling

This commit is contained in:
Keith Solomon
2025-02-09 09:43:26 -06:00
parent 4517f1c540
commit 77dad4e675

View File

@@ -10,15 +10,16 @@ class Bill {
$db = DB::connect();
$stmt = $db->prepare("INSERT INTO bills
(billDate, billName, amount, paymentId, year)
VALUES (?, ?, ?, ?, ?)");
(billDate, billName, amount, paymentId, year, comment)
VALUES (?, ?, ?, ?, ?, ?)");
return $stmt->execute([
$data['date'],
$data['billName'],
$data['amount'],
$data['paymentId'],
$data['year']
$data['year'],
$data['comment']
]);
}