js/create_sale.js
// Delete invoice based on a specific customer
Delete invoice based on a specific customer
Delete invoice based on a specific customer
function deleteInvoice() {
    var invId = $('input[name=cust_inv_id]').val();
    $.ajax({
        type: "POST",
        url: "invoice/test",
        data: {'invId': invId, '_token': $('input[name=_token]').val()},
        dataType: "json",
        success: function (response) {
            console.log(response.msg);
        },
        error: function (error) {
            console.log(error);
        }
    });
}
function deleteInvoice ( ) { var invId = $ ( 'input[name=cust_inv_id]' ) . val ( ) ; $ . ajax ( { type : "POST" , url : "invoice/test" , data : { 'invId' : invId , '_token' : $ ( 'input[name=_token]' ) . val ( ) } , dataType : "json" , success : function ( response ) { console . log ( response . msg ) ; } , error : function ( error ) { console . log ( error ) ; } } ) ; }
Delete invoice based on a specific customer
Delete invoice based on a specific customer
// $('#data_tbl_purchase_history').load(' #data_tbl_purchase_history');