From 74924414a4fb020010125f15c520ce8bc9940fc6 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Thu, 13 Jun 2024 07:33:20 +0000 Subject: [PATCH] FIX_design : ps --- app/Views/invoice_form.php | 183 +++++++++++++++++++++++-------------- 1 file changed, 113 insertions(+), 70 deletions(-) diff --git a/app/Views/invoice_form.php b/app/Views/invoice_form.php index b1172eef..a3bdebe1 100644 --- a/app/Views/invoice_form.php +++ b/app/Views/invoice_form.php @@ -1,22 +1,55 @@ +/* For Webkit (Chrome, Safari, Opera) */ +input[type=number]::-webkit-inner-spin-button, +input[type=number]::-webkit-outer-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* For Firefox */ +input[type=number] { + -moz-appearance: textfield; +} +
+

+
-


" id="myForm"> @@ -78,11 +111,11 @@
- +
- +
@@ -130,16 +163,15 @@
- + - - - - - - - + + + + + + @@ -148,7 +180,7 @@ foreach ($invoice_item_details as $inx => $ii_details) : ?> - - - - + - @@ -198,7 +234,7 @@ } else { ?> - + - - - + - @@ -239,21 +279,23 @@
Item DetailsQtyRateTaxAmount Discount QUANTITYRATETAXAMOUNTDISCOUNT
- bookSelect" name="item_details[]" onchange="displayBookTag(this,)" required data-toggle="select2" style="width: 249px !important;"> @@ -165,31 +197,35 @@ } ?> - + + + + " name="invoice_child_id[]" value="" placeholder="hidden for invoice child/item id" value="" /> " name="quantity[]" oninput="calculateInvoice(this,)" value="" min="1" /> " name="rate[]" oninput="calculateInvoice(this,)" value="" /> " name="tax[]" value="" readonly /> + " name="tax[]" value="" readonly /> " name="amount[]" value="" readonly /> " name="discount_amount[]" oninput="calculateInvoice(this,)" value="" min="0" step="0.001" /> - - - +
+ " name="discount_amount[]" oninput="calculateInvoice(this,)" value="" min="0" step="0.001" /> + +
+
-
+
+
- @@ -209,28 +245,32 @@ - + + + + + - + +
+ + +
- - -
+
+
-
-
+
+

Calculation

-

Calculation

@@ -335,15 +377,15 @@
-
+
- +
-
-
-
+ +
- +
@@ -510,7 +552,7 @@
-
+
@@ -757,14 +799,14 @@ var cell5 = newRow.insertCell(4); var cell6 = newRow.insertCell(5); - cell6.style.width = "10%"; + cell6.style.width = "25%"; var cell7 = newRow.insertCell(6); - var cell8 = newRow.insertCell(7); - cell8.style.width = " 5%"; + cell7.style.width = "5%"; + cell7.className = "last-column"; // var cell9 = newRow.insertCell(8); - html = ` `; @@ -779,14 +821,14 @@ cell1.innerHTML = html; // cell1.innerHTML = ''; - cell1.innerHTML += ''; + cell1.innerHTML += ''; + cell1.innerHTML += ''; cell2.innerHTML = ''; cell3.innerHTML = ''; cell4.innerHTML = ''; cell5.innerHTML = ''; - cell6.innerHTML = ''; - cell7.innerHTML = ''; - cell8.innerHTML = '
'; + cell6.innerHTML = '
'; + cell7.innerHTML = '
'; $(newRow.querySelector('.book-select')).select2(); localStorage.setItem('add_book_index', counter); @@ -1217,6 +1259,7 @@ global_billid = ""; var customer_billing_addressDetails = []; if (cb.length > 0) { + cb = [cb[0]]; console.log("cbbbbbbbbb",cb); $.each(cb, function(k, v) { var state = v.state_name ? v.state_name : v.state; @@ -1232,7 +1275,7 @@ }else{ } - global_billarr = customer_billing_addressDetails.join(', \n') + "."; + global_billarr = customer_billing_addressDetails.join(', ') + "."; global_billid = customer_billing_id; $("#storeBillingAddress").val(global_billarr).prop("readonly", true); $('#hiddenBillingAddressId').val(global_billid); @@ -1300,7 +1343,7 @@ $('#hidden_last_name').val(v.last_name); }); } - $("#storeShippingAddress").val(customer_shipping_addressDetails.join(', \n') + ".").prop("readonly", true); + $("#storeShippingAddress").val(customer_shipping_addressDetails.join(', ') + ".").prop("readonly", true); }, error: function() { alert("Error fetching address.");