s11
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
<div class="w-100">
|
||||
<div class="mb-3">
|
||||
<label for="invoiceId" class="form-label">Invoice Id:</label>
|
||||
<input type="text" class="form-control bg-white" id="invoiceId" name="invoiceId" value="<?= $invoiceData['invoiceId']; ?>">
|
||||
<input type="text" class="form-control bg-white" id="invoiceId" name="invoiceId" value="<?= $invoiceData['invoiceId']; ?>" readonly>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="name" class="form-label">Customer:</label>
|
||||
@@ -125,11 +125,11 @@
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="frequency" class="form-label">Frequency:</label>
|
||||
<select name="frequency" class="form-control" required>
|
||||
<option value="">-Select-</option>
|
||||
<select name="frequency" class="form-control" disabled>
|
||||
<option value="Weekly" <?php echo ($invoiceData['frequency'] === 'Weekly') ? 'selected' : ''; ?>>Weekly</option>
|
||||
<option value="Monthly" <?php echo ($invoiceData['frequency'] === 'Monthly') ? 'selected' : ''; ?>>Monthly</option>
|
||||
</select>
|
||||
<input type="hidden" name="frequency" value="<?php echo htmlspecialchars($invoiceData['frequency']); ?>">
|
||||
</div>
|
||||
<div class="d-flex w-100 gap-2">
|
||||
<div class="mb-3 w-100">
|
||||
@@ -185,7 +185,7 @@
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="tenure" class="form-label">Total Cycles:</label>
|
||||
<select onchange="changeTenureField();" id="tenureAuto" name="tenure" class="form-control" required>
|
||||
<select id="tenureAuto" name="tenure" class="form-control" disabled>
|
||||
<option value="">-Select-</option>
|
||||
<?php
|
||||
foreach ($tenureOptions as $value => $label) {
|
||||
@@ -194,6 +194,8 @@
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="hidden" name="tenure" value="<?php echo htmlspecialchars($selectedTenure); ?>">
|
||||
|
||||
<input type="text" name="tenure" id="tenureCustom" class="form-control visually-hidden"
|
||||
placeholder="Enter custom value" disabled onblur="restoreDropdown(this)" />
|
||||
</div>
|
||||
@@ -223,25 +225,27 @@
|
||||
<input type="text" class="form-control w-100" name="item" id="item" value="<?= htmlspecialchars($invoiceData['item']); ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="form-control w-100" name="description" id="description" value="<?= htmlspecialchars($invoiceData['description']); ?>"/>
|
||||
<input type="text" class="form-control w-100" name="description" id="description" value="<?= htmlspecialchars($invoiceData['description']); ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-control w-100" name="quantity" id="quantity" value="<?= htmlspecialchars($invoiceData['qty']); ?>"/>
|
||||
<input class="form-control w-100" name="quantity" id="quantity" value="<?= htmlspecialchars($invoiceData['qty']); ?>" readonly/>
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-control w-100" name="rate" id="rate" value="<?= htmlspecialchars($invoiceData['rate']); ?>"/>
|
||||
<input class="form-control w-100" name="rate" id="rate" value="<?= htmlspecialchars($invoiceData['rate']); ?>" readonly/>
|
||||
</td>
|
||||
<td>
|
||||
<select name="discount" id="discount" class="form-control">
|
||||
<option value="0">No Discount</option>
|
||||
<?php
|
||||
$discountOptions = ["5", "10", "12", "18"];
|
||||
foreach ($discountOptions as $discountItems) {
|
||||
$selected = ($invoiceData['discount'] === $discountItems) ? 'selected' : '';
|
||||
echo "<option value=\"$discountItems\" $selected> $discountItems%</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select name="discount" id="discount" class="form-control" disabled>
|
||||
<option value="0" <?php echo ($invoiceData['discount'] === "0") ? 'selected' : ''; ?>>No Discount</option>
|
||||
<?php
|
||||
$discountOptions = ["5", "10", "12", "18"];
|
||||
foreach ($discountOptions as $discountItems) {
|
||||
$selected = ($invoiceData['discount'] === $discountItems) ? 'selected' : '';
|
||||
echo "<option value=\"$discountItems\" $selected> $discountItems%</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="hidden" name="discount" value="<?php echo htmlspecialchars($invoiceData['discount']); ?>">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input readonly class="form-control" name="discountAmount" id="discountAmount" value="<?= htmlspecialchars($invoiceData['discountAmount']); ?>" />
|
||||
|
||||
Reference in New Issue
Block a user