Invoice: Dopracowanie ekranu tworzenia faktur cyklicznych

This commit is contained in:
2026-07-30 00:08:09 +02:00
parent 7905529880
commit e6ba6152a6
@@ -19,7 +19,7 @@ include '../../header-invoice.php';
<span class="text-heading">Aktywne cykle</span>
<div class="d-flex align-items-center my-1">
<h4 class="mb-0 me-2">18</h4>
<span class="text-success small fw-medium">(85%)</span>
<span class="text-success small fw-medium">nowe w tym roku</span>
</div>
<small class="text-muted">Szablonów zlecających wysyłkę</small>
</div>
@@ -57,11 +57,11 @@ include '../../header-invoice.php';
<div class="card-body">
<div class="d-flex align-items-start justify-content-between">
<div class="content-left">
<span class="text-heading">Emisja w tym miesiącu</span>
<span class="text-heading">Szacowany ARR</span>
<div class="d-flex align-items-center my-1">
<h4 class="mb-0 me-2">12 faktur</h4>
<h4 class="mb-0 me-2">514 200,00 zł</h4>
</div>
<small class="text-muted">Najbliższa: jutro (3 firmy)</small>
<small class="text-muted">Przychód powtarzalny / rok</small>
</div>
<div class="avatar">
<span class="avatar-initial rounded bg-label-info">
@@ -77,12 +77,11 @@ include '../../header-invoice.php';
<div class="card-body">
<div class="d-flex align-items-start justify-content-between">
<div class="content-left">
<span class="text-heading">Wstrzymane / Szkice</span>
<span class="text-heading">Wyłączone (Nieaktywne)</span>
<div class="d-flex align-items-center my-1">
<h4 class="mb-0 me-2">3</h4>
<span class="text-warning small fw-medium">Wymagają uwagi</span>
</div>
<small class="text-muted">Zastrzeżone lub pauzowane</small>
<small class="text-muted">Cykle obecnie wyłączone</small>
</div>
<div class="avatar">
<span class="avatar-initial rounded bg-label-warning">
@@ -171,10 +170,11 @@ include '../../header-invoice.php';
<thead class="table-light">
<tr>
<th style="width: 50px;">#</th>
<th>Nazwa szablonu / Cykl</th>
<th>Nazwa cyklu i rodzaj</th>
<th>Nabywca / Odbiorca</th>
<th>Wartość netto</th>
<th>Wartość brutto</th>
<th>Częstotliwość</th>
<th>Harmonogram</th>
<th>Najbliższa emisja</th>
<th>Status</th>
<th class="text-center">Akcje</th>
@@ -188,7 +188,7 @@ include '../../header-invoice.php';
<div class="d-flex flex-column">
<a href="app-invoice-recurring-add.php" class="fw-bold text-body">Abonament
Serwis IT i Hosting</a>
<small class="text-muted">Szablon #CYK-2026-001 • Generuj jako Szkic</small>
<small class="text-muted">Faktura VAT</small>
</div>
</td>
<td>
@@ -198,13 +198,14 @@ include '../../header-invoice.php';
</div>
</td>
<td>
<span class="fw-bold text-heading">1 845,00 PLN</span>
<br><small class="text-muted">1 500,00 netto</small>
<span class="text-heading">1 500,00 PLN</span>
</td>
<td>
<span class="badge bg-label-info"><i class="bx bx-calendar me-1"></i> Co 1
miesiąc</span>
<br><small class="text-muted">1. dzień miesiąca</small>
<span class="fw-bold text-heading">1 845,00 PLN</span>
</td>
<td>
<span class="badge bg-label-info"><i class="bx bx-calendar me-1"></i> Co 1 miesiąc</span>
<br><small class="text-muted">Bezterminowo</small>
</td>
<td>
<span class="fw-medium text-primary">01.08.2026</span>
@@ -218,10 +219,6 @@ include '../../header-invoice.php';
</td>
<td class="text-center">
<div class="d-flex justify-content-center align-items-center gap-1">
<button type="button" class="btn btn-icon btn-sm text-primary"
data-bs-toggle="tooltip" title="Wystaw teraz (Wymuś)">
<i class="bx bx-play-circle fs-5"></i>
</button>
<a href="app-invoice-recurring-add.php"
class="btn btn-icon btn-sm text-secondary" data-bs-toggle="tooltip"
title="Edytuj szablon">
@@ -234,13 +231,13 @@ include '../../header-invoice.php';
</button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item" href="javascript:void(0);"><i
class="bx bx-pause me-1"></i> Wstrzymaj (Pauza)</a>
class="bx bx-power-off me-1"></i> Wyłącz cykl</a>
<a class="dropdown-item" href="app-invoice-list.php"><i
class="bx bx-history me-1"></i> Historia wygenerowanych
faktur</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger" href="javascript:void(0);"><i
class="bx bx-trash me-1"></i> Usuń cykl</a>
class="bx bx-archive-in me-1"></i> Archiwizuj cykl</a>
</div>
</div>
</div>
@@ -254,23 +251,24 @@ include '../../header-invoice.php';
<div class="d-flex flex-column">
<a href="app-invoice-recurring-add.php" class="fw-bold text-body">Obsługa
Księgowa i Kadrowa</a>
<small class="text-muted">Szablon #CYK-2026-002 • Automatyczne wysyłanie</small>
<small class="text-muted">Faktura VAT</small>
</div>
</td>
<td>
<div class="d-flex flex-column">
<span class="fw-semibold">Bud-Spec Budownictwo S.A.</span>
<small class="text-muted">Nabywca: Bud-Spec • Odbiorca: Oddział Warszawa</small>
<small class="text-muted">NIP: 111-222-33-44 • Odbiorca: Oddział Warszawa</small>
</div>
</td>
<td>
<span class="fw-bold text-heading">4 305,00 PLN</span>
<br><small class="text-muted">3 500,00 netto</small>
<span class="text-heading">3 500,00 PLN</span>
</td>
<td>
<span class="badge bg-label-info"><i class="bx bx-calendar me-1"></i> Co 1
miesiąc</span>
<br><small class="text-muted">10. dzień miesiąca</small>
<span class="fw-bold text-heading">4 305,00 PLN</span>
</td>
<td>
<span class="badge bg-label-info"><i class="bx bx-calendar me-1"></i> Co 1 miesiąc</span>
<br><small class="text-muted">Do: 31.12.2026</small>
</td>
<td>
<span class="fw-medium text-primary">10.08.2026</span>
@@ -284,10 +282,6 @@ include '../../header-invoice.php';
</td>
<td class="text-center">
<div class="d-flex justify-content-center align-items-center gap-1">
<button type="button" class="btn btn-icon btn-sm text-primary"
data-bs-toggle="tooltip" title="Wystaw teraz (Wymuś)">
<i class="bx bx-play-circle fs-5"></i>
</button>
<a href="app-invoice-recurring-add.php"
class="btn btn-icon btn-sm text-secondary" data-bs-toggle="tooltip"
title="Edytuj szablon">
@@ -300,13 +294,13 @@ include '../../header-invoice.php';
</button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item" href="javascript:void(0);"><i
class="bx bx-pause me-1"></i> Wstrzymaj (Pauza)</a>
class="bx bx-power-off me-1"></i> Wyłącz cykl</a>
<a class="dropdown-item" href="app-invoice-list.php"><i
class="bx bx-history me-1"></i> Historia wygenerowanych
faktur</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger" href="javascript:void(0);"><i
class="bx bx-trash me-1"></i> Usuń cykl</a>
class="bx bx-archive-in me-1"></i> Archiwizuj cykl</a>
</div>
</div>
</div>
@@ -320,7 +314,7 @@ include '../../header-invoice.php';
<div class="d-flex flex-column">
<a href="app-invoice-recurring-add.php" class="fw-bold text-body">Licencja
Oprogramowania Magico ERP</a>
<small class="text-muted">Szablon #CYK-2026-003 • Automatyczne wysyłanie</small>
<small class="text-muted">Proforma</small>
</div>
</td>
<td>
@@ -330,13 +324,14 @@ include '../../header-invoice.php';
</div>
</td>
<td>
<span class="fw-bold text-heading">14 760,00 PLN</span>
<br><small class="text-muted">12 000,00 netto</small>
<span class="text-heading">12 000,00 PLN</span>
</td>
<td>
<span class="badge bg-label-warning"><i class="bx bx-calendar me-1"></i> Co 1
rok</span>
<br><small class="text-muted">15. stycznia</small>
<span class="fw-bold text-heading">14 760,00 PLN</span>
</td>
<td>
<span class="badge bg-label-warning"><i class="bx bx-calendar me-1"></i> Co 1 rok</span>
<br><small class="text-muted">Bezterminowo</small>
</td>
<td>
<span class="fw-medium text-muted">15.01.2027</span>
@@ -350,10 +345,6 @@ include '../../header-invoice.php';
</td>
<td class="text-center">
<div class="d-flex justify-content-center align-items-center gap-1">
<button type="button" class="btn btn-icon btn-sm text-primary"
data-bs-toggle="tooltip" title="Wystaw teraz (Wymuś)">
<i class="bx bx-play-circle fs-5"></i>
</button>
<a href="app-invoice-recurring-add.php"
class="btn btn-icon btn-sm text-secondary" data-bs-toggle="tooltip"
title="Edytuj szablon">
@@ -366,13 +357,13 @@ include '../../header-invoice.php';
</button>
<div class="dropdown-menu dropdown-menu-end">
<a class="dropdown-item text-success" href="javascript:void(0);"><i
class="bx bx-play me-1"></i> Wznowienie cyklu</a>
class="bx bx-power-off me-1"></i> Włącz cykl</a>
<a class="dropdown-item" href="app-invoice-list.php"><i
class="bx bx-history me-1"></i> Historia wygenerowanych
faktur</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger" href="javascript:void(0);"><i
class="bx bx-trash me-1"></i> Usuń cykl</a>
class="bx bx-archive-in me-1"></i> Archiwizuj cykl</a>
</div>
</div>
</div>