var piDieselInvoiceModule = (function () {


  
    
    $('#piDieselInvoice').bootstrapValidator({
        // To use feedback icons, ensure that you use Bootstrap v3.1.0 or later
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
          dieselinvoice: {
                message: 'The invoice number is not valid',
                validators: {
                    notEmpty: {
                        message: 'The invoice number is required and cannot be empty'
                    }
                }
            },
          invoicedate: {
                message: 'The invoice date is not valid',
                validators: {
                    notEmpty: {
                        message: 'The invoice date is required and cannot be empty'
                    }
                }
          },  
          supplierdetails: {
                message: 'The supplier details is not valid',
                validators: {
                    notEmpty: {
                        message: 'The supplier details is required and cannot be empty'
                    }
                }
            },
            supplierinvoice_no: {
                message: 'The supplier invoice number is not valid',
                validators: {
                    notEmpty: {
                        message: 'The supplier invoice number is required and cannot be empty'
                    }
                }
            },
            amount: {
                message: 'The supplier invoice  amount is not valid',
                validators: {
                    notEmpty: {
                        message: 'The supplier invoice  amount is required and cannot be empty'
                    },
                    /*regexp: {
                        regexp: /^[0-9]+$/,
                        message: 'The supplier invoice amount can only consist of number'
                    }*/
                }
            },
            vehicleno: {
                message: 'The vehicle number is not valid',
                validators: {
                    notEmpty: {
                        message: 'The vehicle number is required and cannot be empty'
                    }
                }
            },
            litres: {
                message: 'The litres is not valid',
                validators: {
                    notEmpty: {
                        message: 'The litres is required and cannot be empty'
                    },
                    regexp: {
                        regexp: /^[0-9]+$/,
                        message: 'The supplier invoice amount can only consist of number'
                    }
                }
            }
        }
    });

    

    




    
    

})();