mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Aggiunta numerazione righe in stampa ordini
This commit is contained in:
parent
f251c4be23
commit
8551e1e777
@ -10,10 +10,10 @@ $has_image = $righe->search(function ($item) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if ($has_image) {
|
if ($has_image) {
|
||||||
$columns = 6;
|
$columns = 7;
|
||||||
$char_number = $options['pricing'] ? 26 : 63;
|
$char_number = $options['pricing'] ? 26 : 63;
|
||||||
} else {
|
} else {
|
||||||
$columns = 5;
|
$columns = 6;
|
||||||
$char_number = $options['pricing'] ? 45 : 82;
|
$char_number = $options['pricing'] ? 45 : 82;
|
||||||
}
|
}
|
||||||
$columns = $options['pricing'] ? $columns : $columns - 3;
|
$columns = $options['pricing'] ? $columns : $columns - 3;
|
||||||
@ -26,8 +26,8 @@ $autofill->setRows(30);
|
|||||||
echo "
|
echo "
|
||||||
<table class='table table-striped table-bordered' id='contents'>
|
<table class='table table-striped table-bordered' id='contents'>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>";
|
<tr>
|
||||||
|
<th class='text-center' style='width:5%'>".tr('#', [], ['upper' => true])."</th>";
|
||||||
if ($has_image) {
|
if ($has_image) {
|
||||||
echo "
|
echo "
|
||||||
<th class='text-center' style='width:20%'>".tr('Immagine', [], ['upper' => true]).'</th>';
|
<th class='text-center' style='width:20%'>".tr('Immagine', [], ['upper' => true]).'</th>';
|
||||||
@ -58,6 +58,10 @@ foreach ($righe as $riga) {
|
|||||||
echo '
|
echo '
|
||||||
<tr>';
|
<tr>';
|
||||||
|
|
||||||
|
echo'
|
||||||
|
<td class=\'text-center\' >
|
||||||
|
'.($r['order'] + 1).'</td>';
|
||||||
|
|
||||||
if ($has_image) {
|
if ($has_image) {
|
||||||
if ($riga->isArticolo()) {
|
if ($riga->isArticolo()) {
|
||||||
echo '
|
echo '
|
||||||
@ -172,7 +176,7 @@ if ($options['pricing']) {
|
|||||||
// Totale imponibile
|
// Totale imponibile
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($has_image ? 4 : 3).'" class="text-right border-top">
|
<td colspan="'.($has_image ? 5 : 4).'" class="text-right border-top">
|
||||||
<b>'.tr('Imponibile', [], ['upper' => true]).':</b>
|
<b>'.tr('Imponibile', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -185,7 +189,7 @@ if ($options['pricing']) {
|
|||||||
if ($show_sconto) {
|
if ($show_sconto) {
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($has_image ? 4 : 3).'" class="text-right border-top">
|
<td colspan="'.($has_image ? 5 : 4).'" class="text-right border-top">
|
||||||
<b>'.tr('Sconto', [], ['upper' => true]).':</b>
|
<b>'.tr('Sconto', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -197,7 +201,7 @@ if ($options['pricing']) {
|
|||||||
// Totale imponibile
|
// Totale imponibile
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($has_image ? 4 : 3).'" class="text-right border-top">
|
<td colspan="'.($has_image ? 5 : 4).'" class="text-right border-top">
|
||||||
<b>'.tr('Totale imponibile', [], ['upper' => true]).':</b>
|
<b>'.tr('Totale imponibile', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -210,7 +214,7 @@ if ($options['pricing']) {
|
|||||||
// IVA
|
// IVA
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($has_image ? 4 : 3).'" class="text-right border-top">
|
<td colspan="'.($has_image ? 5 : 4).'" class="text-right border-top">
|
||||||
<b>'.tr('Totale IVA', [], ['upper' => true]).':</b>
|
<b>'.tr('Totale IVA', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -222,7 +226,7 @@ if ($options['pricing']) {
|
|||||||
// TOTALE
|
// TOTALE
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($has_image ? 4 : 3).'" class="text-right border-top">
|
<td colspan="'.($has_image ? 5 : 4).'" class="text-right border-top">
|
||||||
<b>'.tr('Totale documento', [], ['upper' => true]).':</b>
|
<b>'.tr('Totale documento', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
<th colspan="2" class="text-right">
|
<th colspan="2" class="text-right">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user