mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 23:37:51 +01:00
Totali sommabili per le fatture e visualizzati in stampa datatables
This commit is contained in:
parent
e18135d8c1
commit
5441da4551
@ -586,6 +586,16 @@ function start_datatables() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
extend: 'print',
|
extend: 'print',
|
||||||
|
customize: function ( win ) {
|
||||||
|
$(win.document.body)
|
||||||
|
.css( 'font-size', '10pt' )
|
||||||
|
.append(
|
||||||
|
'<table class="main-records table table-condensed table-bordered dataTable" ><tfoot><tr><td colspan="3" ></td><td class="pull-right" >'+$('#summable').text()+'</td><td></td></tr></tfoot></table>',
|
||||||
|
);
|
||||||
|
$(win.document.body).find( 'table' )
|
||||||
|
.addClass( 'compact' )
|
||||||
|
.css( 'font-size', 'inherit' );
|
||||||
|
},
|
||||||
exportOptions: {
|
exportOptions: {
|
||||||
modifier: {
|
modifier: {
|
||||||
selected: true
|
selected: true
|
||||||
@ -724,6 +734,7 @@ function start_datatables() {
|
|||||||
this.api().columns().every(function () {
|
this.api().columns().every(function () {
|
||||||
if (sum.summable[i] != undefined) {
|
if (sum.summable[i] != undefined) {
|
||||||
$(this.footer()).addClass("text-right");
|
$(this.footer()).addClass("text-right");
|
||||||
|
$(this.footer()).attr("id", "summable");
|
||||||
$(this.footer()).html(sum.summable[i]);
|
$(this.footer()).html(sum.summable[i]);
|
||||||
} else $(this.footer()).html(" ");
|
} else $(this.footer()).html(" ");
|
||||||
i++;
|
i++;
|
||||||
|
@ -219,3 +219,7 @@ UPDATE `zz_files` SET `id_plugin` = NULL WHERE `id_plugin` = 0;
|
|||||||
-- Fix id_module (zz_files)
|
-- Fix id_module (zz_files)
|
||||||
ALTER TABLE `zz_files` CHANGE `id_module` `id_module` INT(11) NULL;
|
ALTER TABLE `zz_files` CHANGE `id_module` `id_module` INT(11) NULL;
|
||||||
UPDATE `zz_files` SET `id_module` = NULL WHERE `id_module` = 0;
|
UPDATE `zz_files` SET `id_module` = NULL WHERE `id_module` = 0;
|
||||||
|
|
||||||
|
-- Totali fatture, sommabile
|
||||||
|
UPDATE `zz_views` SET `summable` = '1' WHERE `zz_views`.`id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fatture di vendita') AND name = 'Totale';
|
||||||
|
UPDATE `zz_views` SET `summable` = '1' WHERE `zz_views`.`id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fatture di acquisto') AND name = 'Totale';
|
Loading…
x
Reference in New Issue
Block a user