From 9e40728bbea2b5e65081f51fb32df77c61ac0ac2 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 29 May 2020 15:58:47 +0200 Subject: [PATCH] Aggiunto ID (order) righe documenti --- modules/contratti/row-list.php | 21 ++++++++++++++------- modules/ddt/row-list.php | 22 +++++++++++++++------- modules/fatture/row-list.php | 28 ++++++++++++++++++---------- modules/ordini/row-list.php | 25 +++++++++++++++++-------- modules/preventivi/row-list.php | 24 +++++++++++++++--------- 5 files changed, 79 insertions(+), 41 deletions(-) diff --git a/modules/contratti/row-list.php b/modules/contratti/row-list.php index 53063afba..85d9a9152 100755 --- a/modules/contratti/row-list.php +++ b/modules/contratti/row-list.php @@ -5,7 +5,8 @@ include_once __DIR__.'/../../core.php'; echo ' - + + @@ -22,6 +23,12 @@ foreach ($righe as $riga) { echo ' '; + + echo ' + '; + // Descrizione $descrizione = nl2br($riga->descrizione); if ($riga->isArticolo()) { @@ -140,7 +147,7 @@ $totale = abs($contratto->totale); // Totale totale imponibile echo ' - - - - -
'.tr('#').' '.tr('Descrizione').' '.tr('Q.tà').' '.tr('Prezzo unitario').'
+ '.(($riga->order)+1).' +
+ '.tr('Imponibile', [], ['upper' => true]).': @@ -153,7 +160,7 @@ echo ' if (!empty($sconto)) { echo '
+ '.tr('Sconto/maggiorazione', [], ['upper' => true]).': @@ -165,7 +172,7 @@ if (!empty($sconto)) { // Totale totale imponibile echo '
+ '.tr('Totale imponibile', [], ['upper' => true]).': @@ -178,7 +185,7 @@ if (!empty($sconto)) { // Totale iva echo '
+ '.tr('Iva', [], ['upper' => true]).': @@ -190,7 +197,7 @@ echo ' // Totale contratto echo '
+ '.tr('Totale', [], ['upper' => true]).': @@ -230,4 +237,4 @@ $(document).ready(function(){ }); }); }); -'; +'; \ No newline at end of file diff --git a/modules/ddt/row-list.php b/modules/ddt/row-list.php index e0ea38987..9e5e98325 100755 --- a/modules/ddt/row-list.php +++ b/modules/ddt/row-list.php @@ -6,6 +6,7 @@ echo ' + @@ -36,7 +37,14 @@ foreach ($righe as $riga) { } echo ' - + '; + + echo ' + '; + + echo ' - @@ -186,7 +194,7 @@ echo ' if (!empty($sconto)) { echo ' - @@ -200,7 +208,7 @@ if (!empty($sconto)) { // TOTALE IMPONIBILE echo ' - @@ -215,7 +223,7 @@ if (!empty($sconto)) { // IVA echo ' - @@ -229,7 +237,7 @@ echo ' // TOTALE echo ' - @@ -271,4 +279,4 @@ $(document).ready(function(){ }); }); }); -'; +'; \ No newline at end of file diff --git a/modules/fatture/row-list.php b/modules/fatture/row-list.php index b6f6d02eb..f5564ae23 100755 --- a/modules/fatture/row-list.php +++ b/modules/fatture/row-list.php @@ -7,6 +7,7 @@ echo '
'.tr('#').' '.tr('Descrizione').' '.tr('Q.tà').' '.tr('Prezzo unitario').'
+ '.(($riga->order)+1).' + '; if ($riga->isArticolo()) { echo ' @@ -171,7 +179,7 @@ $totale = abs($ddt->totale); // IMPONIBILE echo '
+ '.tr('Imponibile', [], ['upper' => true]).':
+ '.tr('Sconto/maggiorazione', [], ['upper' => true]).':
+ '.tr('Totale imponibile', [], ['upper' => true]).':
+ '.tr('IVA', [], ['upper' => true]).':
+ '.tr('Totale', [], ['upper' => true]).':
+ @@ -69,7 +70,14 @@ foreach ($righe as $riga) { } echo ' - + '; + + echo ' + '; + + echo ' - - - - - - - -
'.tr('#').' '.tr('Descrizione').' '.tr('Q.tà').' '.tr('Prezzo unitario').'
+ '.(($riga->order)+1).' + '; if ($riga->isArticolo()) { @@ -240,7 +248,7 @@ echo ' if (!empty($sconto)) { echo '
+ '.tr('Sconto/maggiorazione', [], ['upper' => true]).': @@ -252,7 +260,7 @@ if (!empty($sconto)) { // TOTALE IMPONIBILE echo '
+ '.tr('Totale imponibile', [], ['upper' => true]).': @@ -266,7 +274,7 @@ if (!empty($sconto)) { if (!empty($fattura->rivalsa_inps)) { echo '
'; + '; if ($dir == 'entrata') { echo ' @@ -287,7 +295,7 @@ if (!empty($fattura->rivalsa_inps)) { if (!empty($iva)) { echo '
'; + '; if ($records[0]['split_payment']) { echo ''.tr('Iva a carico del destinatario', [], ['upper' => true]).':'; @@ -306,7 +314,7 @@ if (!empty($iva)) { // TOTALE echo '
+ '.tr('Totale', [], ['upper' => true]).': @@ -319,7 +327,7 @@ echo ' if (!empty($fattura->ritenuta_acconto)) { echo '
+ '.tr("Ritenuta d'acconto", [], ['upper' => true]).': @@ -333,7 +341,7 @@ if (!empty($fattura->ritenuta_acconto)) { if (!empty($fattura->totale_ritenuta_contributi)) { echo '
+ '.tr('Ritenuta contributi', [], ['upper' => true]).': @@ -347,7 +355,7 @@ if (!empty($fattura->totale_ritenuta_contributi)) { if ($totale != $netto_a_pagare) { echo '
+ '.tr('Netto a pagare', [], ['upper' => true]).': @@ -389,4 +397,4 @@ $(document).ready(function(){ }); }); }); -'; +'; \ No newline at end of file diff --git a/modules/ordini/row-list.php b/modules/ordini/row-list.php index e5054e5bd..f2545a000 100755 --- a/modules/ordini/row-list.php +++ b/modules/ordini/row-list.php @@ -5,7 +5,8 @@ include_once __DIR__.'/../../core.php'; echo ' - + + @@ -36,7 +37,15 @@ foreach ($righe as $riga) { } echo ' - + '; + + echo ' + '; + + + echo ' - - - - -
'.tr('#').' '.tr('Descrizione').' '.tr('Q.tà').' '.tr('Prezzo unitario').'
+ '.(($riga->order)+1).' + '; if ($riga->isArticolo()) { @@ -171,7 +180,7 @@ $totale = abs($ordine->totale); // IMPONIBILE echo '
+ '.tr('Imponibile', [], ['upper' => true]).': @@ -184,7 +193,7 @@ echo ' if (!empty($sconto)) { echo '
+ '.tr('Sconto/maggiorazione', [], ['upper' => true]).': @@ -196,7 +205,7 @@ if (!empty($sconto)) { // TOTALE IMPONIBILE echo '
+ '.tr('Totale imponibile', [], ['upper' => true]).': @@ -209,7 +218,7 @@ if (!empty($sconto)) { // IVA echo '
+ '.tr('Iva', [], ['upper' => true]).': @@ -221,7 +230,7 @@ echo ' // TOTALE echo '
+ '.tr('Totale', [], ['upper' => true]).': @@ -261,4 +270,4 @@ $(document).ready(function(){ }); }); }); -'; +'; \ No newline at end of file diff --git a/modules/preventivi/row-list.php b/modules/preventivi/row-list.php index b62e0062f..9fdc25bf9 100755 --- a/modules/preventivi/row-list.php +++ b/modules/preventivi/row-list.php @@ -5,7 +5,8 @@ include_once __DIR__.'/../../core.php'; echo ' - + + @@ -22,6 +23,11 @@ foreach ($righe as $riga) { echo ' '; + echo ' + '; + // Descrizione $descrizione = nl2br($riga->descrizione); if ($riga->isArticolo()) { @@ -139,7 +145,7 @@ $totale = abs($preventivo->totale); // Totale imponibile scontato echo ' - - - - - - -
'.tr('#').' '.tr('Descrizione').' '.tr('Q.tà').' '.tr('Prezzo unitario').'
+ '.(($riga->order)+1).' +
+ '.tr('Imponibile', [], ['upper' => true]).': @@ -152,7 +158,7 @@ echo ' if (!empty($sconto)) { echo '
+ '.tr('Sconto/maggiorazione', [], ['upper' => true]).': @@ -164,7 +170,7 @@ if (!empty($sconto)) { // Totale imponibile scontato echo '
+ '.tr('Totale imponibile', [], ['upper' => true]).': @@ -177,7 +183,7 @@ if (!empty($sconto)) { // Totale iva echo '
+ '.tr('Iva', [], ['upper' => true]).': @@ -189,7 +195,7 @@ echo ' // Totale echo '
+ '.tr('Totale', [], ['upper' => true]).': @@ -205,7 +211,7 @@ $margine_icon = ($margine <= 0 and $preventivo->totale > 0) ? 'warning' : 'check echo '
+ '.tr('Costi').': @@ -215,7 +221,7 @@ echo '
+ '.tr('Margine (_PRC_%)', [ '_PRC_' => numberFormat($preventivo->margine_percentuale), ]).': @@ -257,4 +263,4 @@ $(document).ready(function(){ }); }); }); -'; +'; \ No newline at end of file