v1.43.12 - FIX: Badge de Débito em vermelho nas transações recorrentes
This commit is contained in:
parent
efbd5e8aa2
commit
891df889ec
12
CHANGELOG.md
12
CHANGELOG.md
@ -5,6 +5,18 @@ O formato segue [Keep a Changelog](https://keepachangelog.com/pt-BR/).
|
||||
Este projeto adota [Versionamento Semântico](https://semver.org/pt-BR/).
|
||||
|
||||
|
||||
## [1.43.12] - 2025-12-16
|
||||
|
||||
### Fixed
|
||||
- **Transações Recorrentes - Badge de Tipo**
|
||||
- Badge de "Débito" agora aparece em vermelho (`bg-danger`) ✅
|
||||
- Badge de "Crédito" continua em verde (`bg-success`) ✅
|
||||
- Problema: Código comparava `template.type === 'expense'` mas banco usa 'debit'/'credit'
|
||||
- Solução: Corrigido para `template.type === 'debit'`
|
||||
- Aplicado em:
|
||||
* Cards mobile
|
||||
* Tabela desktop
|
||||
|
||||
## [1.43.11] - 2025-12-16
|
||||
|
||||
### Added
|
||||
|
||||
@ -419,7 +419,7 @@ const RecurringTransactions = () => {
|
||||
{t(`recurring.frequencies.${template.frequency}`, template.frequency)}
|
||||
{template.frequency_interval > 1 && ` (x${template.frequency_interval})`}
|
||||
</span>
|
||||
<span className={`badge ${template.type === 'expense' ? 'bg-danger' : 'bg-success'}`} style={{ fontSize: '0.7rem' }}>
|
||||
<span className={`badge ${template.type === 'debit' ? 'bg-danger' : 'bg-success'}`} style={{ fontSize: '0.7rem' }}>
|
||||
{t(`transactions.${template.type}`)}
|
||||
</span>
|
||||
{(template.pending_instances_count || 0) > 0 && (
|
||||
@ -500,7 +500,7 @@ const RecurringTransactions = () => {
|
||||
)}
|
||||
</td>
|
||||
<td>
|
||||
<span className={`badge ${template.type === 'expense' ? 'bg-danger' : 'bg-success'}`}>
|
||||
<span className={`badge ${template.type === 'debit' ? 'bg-danger' : 'bg-success'}`}>
|
||||
{t(`transactions.${template.type}`)}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user