2
$(".search-invoice").on("keyup", function () {
3
var value = $(this).val().toLowerCase();
4
$(".invoice-users li").filter(function () {
5
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1);
10
$("#custom-invoice > #printableArea:first").show();
13
$(".print-page").click(function () {
15
var close = mode == "popup";
20
$("div#printableArea:first").printArea(options);
23
var $btns = $(".listing-user").click(function () {
24
var getDataInvoiceAttr = $(this).attr("data-invoice-id");
25
var getParentDiv = $(this).parents(".invoice-application");
26
var getParentInvListContainer = $(this).parents(".app-invoice");
28
var $el = $("." + this.id).show();
29
$("#custom-invoice > div").not($el).hide();
30
var setInvoiceNumber = getParentDiv
31
.find(".invoice-inner-part .invoice-number")
32
.text("#" + getDataInvoiceAttr);
34
var hideTheNonSelectedContent = $(this)
35
.parents(".invoice-application")
36
.find(".chat-not-selected")
38
.siblings(".invoiceing-box")
40
var showInvContentSection = getParentDiv
41
.find(".invoice-inner-part #custom-invoice")
42
.css("display", "block");
43
$btns.removeClass("bg-light-subtle");
44
$(this).addClass("bg-light-subtle");
46
if ($(".invoiceing-box").css("display") == "block") {
47
$(".right-part.invoice-box").css("height", "100%");
51
$(".print-page").click(function () {
53
var close = mode == "popup";
58
$("div#printableArea").printArea(options);
61
var myDiv = document.getElementsByClassName("invoice-inner-part")[0];