Change expense client to client_id post var

This commit is contained in:
johnnyq
2026-03-06 18:40:01 -05:00
parent fcf098f494
commit 60b6c245ef
4 changed files with 7 additions and 7 deletions

View File

@@ -156,7 +156,7 @@ ob_start();
</div>
<?php if ($client_id) { ?>
<input type="hidden" name="client" value="<?php echo $client_id; ?>">
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
<?php } else { ?>
<div class="form-group col-md">
@@ -165,7 +165,7 @@ ob_start();
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
</div>
<select class="form-control select2" name="client" required>
<select class="form-control select2" name="client_id" required>
<option value="0">- Client (Optional) -</option>
<?php

View File

@@ -163,7 +163,7 @@ ob_start();
</div>
<?php if (isset($_GET['client_id'])) { ?>
<input type="hidden" name="client" value="<?php echo $client_id; ?>">
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
<?php } else { ?>
<div class="form-group col-md">
@@ -172,7 +172,7 @@ ob_start();
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
</div>
<select class="form-control select2" name="client">
<select class="form-control select2" name="client_id">
<option value="">- Select Client -</option>
<?php

View File

@@ -186,7 +186,7 @@ ob_start();
</div>
<?php if (isset($_GET['client_id'])) { ?>
<input type="hidden" name="client" value="<?php echo $client_id; ?>">
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
<?php } else { ?>
<div class="form-group col-md">
@@ -195,7 +195,7 @@ ob_start();
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
</div>
<select class="form-control select2" name="client">
<select class="form-control select2" name="client_id">
<option value="">- Select Client -</option>
<?php

View File

@@ -5,7 +5,7 @@ $date = sanitizeInput($_POST['date']);
$amount = floatval($_POST['amount']);
$account = intval($_POST['account']);
$vendor = intval($_POST['vendor']);
$client = intval($_POST['client']);
$client_id = intval($_POST['client_id']);
$category = intval($_POST['category']);
$description = sanitizeInput($_POST['description']);
$reference = sanitizeInput($_POST['reference']);