CHANGES_ rate column readonly removed : ps
This commit is contained in:
parent
e7a5964d34
commit
d81304a2e5
@ -167,7 +167,7 @@
|
||||
</td>
|
||||
<td style="width:8%;"><input type="number" class="form-control item-quantity" id="<?= "quantity" . $inx; ?>" name="quantity[]" oninput="calculateInvoice(this,<?= $inx; ?>)" value="<?= isset($ii_details['quantity']) ? $ii_details['quantity'] : '' ?>" min="1" />
|
||||
</td>
|
||||
<td style="width:12%;"><input type="text" class="form-control item-rate" id="<?= "rate" . $inx; ?>" name="rate[]" oninput="calculateInvoice(this,<?= $inx; ?>)" value="<?= isset($ii_details['unit_price']) ? $ii_details['unit_price'] : '' ?>" readonly />
|
||||
<td style="width:12%;"><input type="text" class="form-control item-rate" id="<?= "rate" . $inx; ?>" name="rate[]" oninput="calculateInvoice(this,<?= $inx; ?>)" value="<?= isset($ii_details['unit_price']) ? $ii_details['unit_price'] : '' ?>" /> <!-- readonly /> -->
|
||||
</td>
|
||||
<td style="width:8%;display:none;"><input type="number" class="form-control item-tax" id="<?= "tax" . $inx; ?>" name="tax[]" value="<?= isset($ii_details['tax']) ? $ii_details['tax'] : '' ?>" readonly />
|
||||
</td>
|
||||
@ -810,7 +810,7 @@
|
||||
// Update the fields in the current row with book details
|
||||
row.querySelector('#quantity' + counter).value = 1;
|
||||
row.querySelector('#rate' + counter).value = selectedBook.price;
|
||||
row.querySelector('#rate' + counter).readOnly = true;
|
||||
// row.querySelector('#rate' + counter).readOnly = true;
|
||||
row.querySelector("#tax" + counter).value = selectedBook.tax ? selectedBook.tax : 0;
|
||||
row.querySelector("#tax" + counter).readOnly = true;
|
||||
calculateInvoice(inputElement, counter);
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
<div class="header">
|
||||
<!-- <img src="https://vijayabharathambooks.com/wp-content/uploads/2021/09/vijaya-bharatham-logo-8pt.png" alt="Business Logo" class="business-logo"><br> -->
|
||||
<div style="float:left; width:80px;margin-right:10px;"><img src="https://vbp.venbait.in/wp-content/uploads/2023/05/1111.png" alt="Business Logo" class="business-logo"/></div>
|
||||
<div style="text-align:left;font-size:12px;">F From<br/>
|
||||
<div style="text-align:left;font-size:12px;">From<br/>
|
||||
<?= $customerDetails[$i]['company_name']; ?><br>
|
||||
|
||||
<?php if (isset($customerDetails[$i]['company_address'])) : ?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user