Subversion Repositories SmartDukaan

Rev

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

Rev 34256 Rev 36198
Line 845... Line 845...
845
    let endPoint = `${context}/credit-note/attachements?cnNumber=${cnNumber}`;
845
    let endPoint = `${context}/credit-note/attachements?cnNumber=${cnNumber}`;
846
 
846
 
847
    window.location.href = endPoint; // Redirect to the download URL
847
    window.location.href = endPoint; // Redirect to the download URL
848
});
848
});
849
 
849
 
-
 
850
$(document).on('click', '.download-all-cn', function () {
-
 
851
    var selectedDate = $('input[name="creditNotePeriod"]').val();
-
 
852
    if (!selectedDate) {
-
 
853
        alert("Please select a month first!");
-
 
854
        return;
-
 
855
    }
-
 
856
    window.location.href = `${context}/credit-note/download-all?yearMonth=${selectedDate}`;
-
 
857
});
850
 
858