Phase 114 complete (v3.7 Invoices): - /settings/accounting jako hub-rozdroze (Paragony / Faktury) - /settings/accounting/receipts + /invoices osobne podstrony list i edycji - InvoiceConfigRepository + Controller (CRUD z walidacja delegacji) - Seed Domyslny VAT (NOT EXISTS idempotent) - invoice-config-form.js (toggle is_delegated -> integration_id) - confirm-delete.js (globalny modul OrderProAlerts.confirm) - Legacy aliasy starych endpointow /settings/accounting/save|toggle|delete Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
36 lines
1.5 KiB
PHP
36 lines
1.5 KiB
PHP
<?php
|
|
$success = trim((string) ($successMessage ?? ''));
|
|
$error = trim((string) ($errorMessage ?? ''));
|
|
?>
|
|
|
|
<section class="card">
|
|
<h2 class="section-title">Ksiegowosc</h2>
|
|
<p class="muted mt-12">Wybierz typ dokumentu ktorego konfiguracje chcesz zarzadzac.</p>
|
|
|
|
<?php if ($error !== ''): ?>
|
|
<div class="alert alert--danger mt-12" role="alert"><?= $e($error) ?></div>
|
|
<?php endif; ?>
|
|
<?php if ($success !== ''): ?>
|
|
<div class="alert alert--success mt-12" role="status"><?= $e($success) ?></div>
|
|
<?php endif; ?>
|
|
</section>
|
|
|
|
<section class="card mt-16">
|
|
<div class="form-grid-2">
|
|
<div style="border:1px solid var(--border-color, #e5e7eb);border-radius:8px;padding:16px">
|
|
<h3 class="section-title" style="margin-top:0">Paragony</h3>
|
|
<p class="muted mt-12">Konfiguracje wystawiania paragonow: format numeracji, sposob numerowania, oznaczenie zamowienia.</p>
|
|
<div class="form-actions mt-16">
|
|
<a class="btn btn--primary" href="/settings/accounting/receipts">Zarzadzaj paragonami</a>
|
|
</div>
|
|
</div>
|
|
<div style="border:1px solid var(--border-color, #e5e7eb);border-radius:8px;padding:16px">
|
|
<h3 class="section-title" style="margin-top:0">Faktury</h3>
|
|
<p class="muted mt-12">Konfiguracje wystawiania faktur: numeracja lokalna lub delegacja do Fakturowni, termin platnosci, typ dokumentu.</p>
|
|
<div class="form-actions mt-16">
|
|
<a class="btn btn--primary" href="/settings/accounting/invoices">Zarzadzaj fakturami</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|