s11
This commit is contained in:
@@ -105,9 +105,9 @@
|
||||
$customerAddress = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
$stmt = $db->query("SELECT id FROM invoice ORDER BY id DESC LIMIT 1");
|
||||
$stmt = $db->query("SELECT id FROM invoice WHERE DATE(invoiceDate) = CURDATE() ORDER BY id DESC LIMIT 1");
|
||||
$lastInvoice = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
$invoiceId = "ASDQ-" . ($lastInvoice ? ($lastInvoice['id'] + 1) : '1');
|
||||
$invoiceId = "CB" . date('my') . ($lastInvoice ? ($lastInvoice['id'] + 1) : '1');
|
||||
|
||||
$stmt = $db->query("SELECT invoiceId FROM invoice ORDER BY id DESC LIMIT 1");
|
||||
$lastInvoicePrint = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||
@@ -136,7 +136,7 @@
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="address" class="form-label">Address:</label>
|
||||
<input id="address" readonly name="customerAddress" class="form-control bg-white" type="text" value="<?= 'City: ' . $customerAddress['city'] .' District: '. $customerAddress['district'] . ' State: ' .$customerAddress['state'] . ' Pin Code: ' . $customerAddress['pinCode']; ?>">
|
||||
<input id="address" readonly name="customerAddress" class="form-control bg-white" type="text" value="<?= htmlspecialchars($customer['address']); ?>">
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
|
||||
Reference in New Issue
Block a user