ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/adimi/my-assets/js/admin_js/ |
"use strict"; function addPurchaseInputField(e){var t=$("tbody#addPurchaseItem tr:first-child").html();count==limits?alert("You have reached the limit of adding "+count+" inputs"):$("tbody#addPurchaseItem").append("<tr>"+t+"</tr>")}function calculateSum(){var e=0;$(".total_price").each(function(){isNaN(this.value)||0==this.value.length||(e+=parseFloat(this.value))}),$("#grandTotal").val(e.toFixed(0))}function deleteRow(e){var t=$("#purchaseTable > tbody > tr").length;if(1==t)alert("There only one row you can't delete.");else{var a=e.parentNode.parentNode;a.parentNode.removeChild(a)}calculateSum()}var count=2,limits=500;$("body").on("keyup",".quantity_calculate",function(){var e=$(this).parent().parent().children().next().children().val(),t=$(this).parent().parent().children().next().next().children().val();$(this).parent().parent().children().next().next().next().children().val(e*t),calculateSum()});