mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
fix(transactions): preservar período salvo ao editar lançamento de cartão
No modal de edição, o período não era recalculado com base no fechamento do cartão, garantindo que o valor salvo no banco seja sempre exibido. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -116,8 +116,9 @@ export function TransactionDialog({
|
||||
},
|
||||
);
|
||||
|
||||
// Derive credit card period on open when cardId is pre-filled
|
||||
// Derive credit card period on open when cardId is pre-filled (create only)
|
||||
if (
|
||||
mode !== "update" &&
|
||||
initial.paymentMethod === "Cartão de crédito" &&
|
||||
initial.cardId &&
|
||||
initial.purchaseDate
|
||||
|
||||
Reference in New Issue
Block a user