@@ -99,12 +99,14 @@ export default function Payments({
|
||||
invoices,
|
||||
payments,
|
||||
canManage,
|
||||
expenseAllocationsReady = false,
|
||||
focusPaymentId = null,
|
||||
focusInvoiceId = null,
|
||||
}: {
|
||||
invoices: Invoice[];
|
||||
payments: Page<Payment>;
|
||||
canManage: boolean;
|
||||
expenseAllocationsReady?: boolean;
|
||||
focusPaymentId?: number | null;
|
||||
focusInvoiceId?: number | null;
|
||||
}) {
|
||||
@@ -383,6 +385,15 @@ export default function Payments({
|
||||
</p>
|
||||
)}
|
||||
{p.canReview && <Review id={p.id} />}
|
||||
{expenseAllocationsReady &&
|
||||
p.status === 'confirmed' && (
|
||||
<Link
|
||||
className="mt-3 inline-block underline"
|
||||
href={`/pagamentos/${p.id}/categorias`}
|
||||
>
|
||||
Imputação por categoria
|
||||
</Link>
|
||||
)}
|
||||
</Panel>
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user