View | Details | Raw Unified | Return to bug 31041
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js (-2 / +41 lines)
Lines 55-60 $(document).ready(function() { Link Here
55
    });
55
    });
56
56
57
    $('.printModal').click(function() {
57
    $('.printModal').click(function() {
58
        window.print();
58
59
        let contents = $('#cashupSummaryModal .modal-body').html();
60
        let win = window.open('','');
61
        win.document.write(`
62
            <style>
63
                table {
64
                    background-color: #FFFFFF;
65
                    border-bottom: 1px solid #CCCCCC;
66
                    border-collapse: collapse;
67
                    border-left: 1px solid #CCCCCC;
68
                    margin: 3px 0 5px 0;
69
                    padding: 0;
70
                    width: 99%;
71
                }
72
73
                td {
74
                    background-color: #FFF;
75
                    border-bottom: 1px solid #CCCCCC;
76
                    border-left: 0;
77
                    border-right: 1px solid #CCCCCC;
78
                    border-top: 0;
79
                    font-size: 12px;
80
                    padding: 5px 5px 5px 5px;
81
                }
82
83
                th {
84
                    background-color: #E9E9E9;
85
                    border-bottom: 1px solid #CCCCCC;
86
                    border-left: 0;
87
                    border-right: 1px solid #CCCCCC;
88
                    border-top: 0;
89
                    font-size: 14px;
90
                    font-weight: bold;
91
                    padding: 5px 5px 5px 5px;
92
                    text-align: left;
93
                }
94
            </style>
95
        `)
96
        win.document.write( contents );
97
        win.print();
98
        win.close();
59
    });
99
    });
60
});
100
});
61
- 

Return to bug 31041