Subversion Repositories SmartDukaan

Rev

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

Rev 34236 Rev 34256
Line 832... Line 832...
832
    let endPoint = `${context}/credit-note/download?cnNumber=${cnNumber}`;
832
    let endPoint = `${context}/credit-note/download?cnNumber=${cnNumber}`;
833
 
833
 
834
    window.location.href = endPoint; // Redirect to the download URL
834
    window.location.href = endPoint; // Redirect to the download URL
835
});
835
});
836
 
836
 
-
 
837
$(document).on('click', '.download-credit-note-attachement', function () {
-
 
838
    var cnNumber = $(this).data("creditnumber");
-
 
839
 
-
 
840
    if (!cnNumber) {
-
 
841
        alert("CN-Number cannot be empty!");
-
 
842
        return;
-
 
843
    }
-
 
844
 
-
 
845
    let endPoint = `${context}/credit-note/attachements?cnNumber=${cnNumber}`;
-
 
846
 
-
 
847
    window.location.href = endPoint; // Redirect to the download URL
-
 
848
});
-
 
849
 
837
 
850