1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-23 06:47:40 +01:00

Correzione del numero riga per i documenti (#885)

This commit is contained in:
Dasc3er 2020-09-11 09:04:06 +02:00
parent b324852962
commit ae583906cc
9 changed files with 48 additions and 31 deletions

View File

@ -38,11 +38,14 @@ echo '
// Righe documento
$righe = $contratto->getRighe();
foreach ($righe as $key => $riga) {
$num = 0;
foreach ($righe as $riga) {
++$num;
echo '
<tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'">
<td class="text-center">
'.($key + 1).'
'.$num.'
</td>';
// Descrizione

View File

@ -38,7 +38,10 @@ echo '
// Righe documento
$righe = $ddt->getRighe();
foreach ($righe as $key => $riga) {
$num = 0;
foreach ($righe as $riga) {
++$num;
$extra = '';
$mancanti = 0;
@ -57,7 +60,7 @@ foreach ($righe as $key => $riga) {
echo '
<tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'" '.$extra.'>
<td class="text-center">
'.($key + 1).'
'.$num.'
</td>
<td>';

View File

@ -37,7 +37,10 @@ echo '
// Righe documento
$righe = $fattura->getRighe();
foreach ($righe as $key => $riga) {
$num = 0;
foreach ($righe as $riga) {
++$num;
$extra = '';
$mancanti = 0;
$delete = 'delete_riga';
@ -88,7 +91,7 @@ foreach ($righe as $key => $riga) {
echo '
<tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'" '.$extra.'>
<td class="text-center">
'.($key + 1).'
'.$num.'
</td>
<td>';

View File

@ -41,7 +41,10 @@ echo '
$today = new Carbon\Carbon();
$today = $today->startOfDay();
$righe = $ordine->getRighe();
foreach ($righe as $key => $riga) {
$num = 0;
foreach ($righe as $riga) {
++$num;
$extra = '';
$mancanti = 0;
@ -60,7 +63,7 @@ foreach ($righe as $key => $riga) {
echo '
<tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'" '.$extra.'>
<td class="text-center">
'.($key + 1).'
'.$num.'
</td>
<td>';

View File

@ -37,11 +37,14 @@ echo '
// Righe documento
$righe = $preventivo->getRighe();
foreach ($righe as $key => $riga) {
$num = 0;
foreach ($righe as $riga) {
++$num;
echo '
<tr data-id="'.$riga->id.'" data-type="'.get_class($riga).'">
<td class="text-center">
'.($key + 1).'
'.$num.'
</td>';
// Descrizione

View File

@ -51,17 +51,17 @@ if ($options['pricing']) {
// Righe documento
$righe = $documento->getRighe();
foreach ($righe as $key => $riga) {
$num = 0;
foreach ($righe as $riga) {
++$num;
$r = $riga->toArray();
$autofill->count($r['descrizione']);
echo '
<tr>';
echo '
<tr>
<td class="text-center" style="vertical-align: middle">
'.($key + 1).'
'.$num.'
</td>';
echo'

View File

@ -48,7 +48,9 @@ echo "
// Righe documento
$righe = $documento->getRighe();
foreach ($righe as $key => $riga) {
$num = 0;
foreach ($righe as $riga) {
++$num;
$r = $riga->toArray();
$autofill->count($r['descrizione']);
@ -61,7 +63,7 @@ foreach ($righe as $key => $riga) {
echo '
<td class="text-center" style="vertical-align: middle">
'.($key + 1).'
'.$num.'
</td>';
echo '

View File

@ -67,18 +67,18 @@ if ($options['pricing']) {
<tbody>';
foreach ($righe as $key => $riga) {
$num = 0;
foreach ($righe as $riga) {
++$num;
$r = $riga->toArray();
$autofill->count($r['descrizione']);
echo '
<tr>';
echo '
<td class="text-center" style="vertical-align: middle">
'.($key + 1).'
</td>';
<tr>
<td class="text-center" style="vertical-align: middle">
'.$num.'
</td>';
if ($has_image) {
if ($riga->isArticolo()) {

View File

@ -142,18 +142,18 @@ echo '
<tbody>';
foreach ($righe as $key => $riga) {
$num = 0;
foreach ($righe as $riga) {
++$num;
$r = $riga->toArray();
$autofill->count($r['descrizione']);
echo '
<tr>';
echo '
<td class="text-center" style="vertical-align: middle" width="25">
'.($key + 1).'
</td>';
<tr>
<td class="text-center" style="vertical-align: middle" width="25">
'.$num.'
</td>';
if ($has_images) {
echo '<td class=\"text-center\" style=\"vertical-align: middle\" >';