Subversion Repositories SmartDukaan

Rev

Rev 32329 | Rev 32627 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32329 Rev 32468
Line 178... Line 178...
178
            }
178
            }
179
            // Clear insurance values if price changes
179
            // Clear insurance values if price changes
180
            $(this).closest('tr').find('.insuranceid').val("");
180
            $(this).closest('tr').find('.insuranceid').val("");
181
            $(this).closest('tr').find('.insuranceamount').val("0");
181
            $(this).closest('tr').find('.insuranceamount').val("0");
182
        }
182
        }
183
        calculateTotalAmount();
183
        //calculateTotalAmount();
184
    });
184
    });
185
    customerInfo = $("div.customerinfo").html();
185
    customerInfo = $("div.customerinfo").html();
186
    billingInfo = $("div.billinginfo").html();
186
    billingInfo = $("div.billinginfo").html();
187
 
187
 
188
    $("input.search-phone").change(function () {
188
    $("input.search-phone").change(function () {
189
        resetInputs();
189
        resetInputs();
190
        var mobileNumber = $(this).val();
190
        var mobileNumber = $(this).val();
191
        console.log(mobileNumber)
191
        console.log(mobileNumber);
192
        if (mobileNumber.length < 10 || mobileNumber.length > 10) {
192
        if (mobileNumber.length < 10 || mobileNumber.length > 10) {
193
            alert("Mobile Number is must be 10 digits");
193
            alert("Mobile Number is must be 10 digits");
194
            return false;
194
            return false;
195
        } else {
195
        } else {
196
            writeOldCustomerDetailsByMobileNumber(mobileNumber);
196
            writeOldCustomerDetailsByMobileNumber(mobileNumber);