Files
SGF/packages/payables/ui/settlement-allocations.php
2026-11-04 09:37:20 +02:00

7 lines
955 B
PHP

<?php if (! isset($data['settlement_pagination'])) return; ?>
<section id="allocation-history"><h2>Afectações confirmadas</h2>
<?php foreach($data['allocations'] as $a): ?><article><h3>Afectação #<?= $e($a->id) ?></h3><p><a href="<?= $e($paymentFocusUrl((int)$a->payment_id)) ?>">Pagamento #<?= $e($a->payment_id) ?></a> · Obrigação #<?= $e($a->obligation_id) ?> · <?= $money($a->amount_minor) ?> · <?= $e($a->created_at) ?></p><p>Versão de origem <?= $e($a->source_revision) ?>. O original mantém-se no histórico mesmo quando existe reversão.</p>
<?php if($a->local_source_id!==null): ?><p><a href="<?= $e('/supplier-payables?'.http_build_query(['source'=>$a->local_source_id],'','&',PHP_QUERY_RFC3986)) ?>">Conferir origem e reconhecimento</a></p><?php endif ?></article><?php endforeach ?>
<?php if(!$data['allocations']): ?><p>Sem afectações confirmadas nesta janela.</p><?php endif ?>
<?php $settlementNav('allocations'); ?></section>