v1.34.3: Correção de formatação de data em Passivos
Fixed: - Data da próxima parcela agora formatada corretamente - Usa formatDate() para exibição legível localizada - Corrige timestamp ISO bruto
This commit is contained in:
parent
0b66364650
commit
5b52199c0d
@ -5,6 +5,14 @@ O formato segue [Keep a Changelog](https://keepachangelog.com/pt-BR/).
|
|||||||
Este projeto adota [Versionamento Semântico](https://semver.org/pt-BR/).
|
Este projeto adota [Versionamento Semântico](https://semver.org/pt-BR/).
|
||||||
|
|
||||||
|
|
||||||
|
## [1.34.3] - 2025-12-15
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- **Relatório de Passivos** - Corrigida formatação da data da próxima parcela
|
||||||
|
- Data agora usa `formatDate()` para exibição legível
|
||||||
|
- Corrige exibição de timestamp ISO bruto (ex: "2026-01-05T00:00:00.000000Z")
|
||||||
|
- Formato final: "05/01/2026" (localizado conforme idioma)
|
||||||
|
|
||||||
## [1.34.2] - 2025-12-15
|
## [1.34.2] - 2025-12-15
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@ -33,7 +33,7 @@ ChartJS.register(
|
|||||||
|
|
||||||
const Reports = () => {
|
const Reports = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { currency } = useFormatters();
|
const { currency, formatDate } = useFormatters();
|
||||||
|
|
||||||
const [activeTab, setActiveTab] = useState('summary');
|
const [activeTab, setActiveTab] = useState('summary');
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
@ -1190,7 +1190,7 @@ const Reports = () => {
|
|||||||
<div className={`mt-3 p-2 rounded ${liability.next_installment.is_overdue ? 'bg-danger bg-opacity-25' : 'bg-primary bg-opacity-25'}`}>
|
<div className={`mt-3 p-2 rounded ${liability.next_installment.is_overdue ? 'bg-danger bg-opacity-25' : 'bg-primary bg-opacity-25'}`}>
|
||||||
<small className="text-slate-400">{t('reports.nextInstallment')}:</small>
|
<small className="text-slate-400">{t('reports.nextInstallment')}:</small>
|
||||||
<div className="d-flex justify-content-between">
|
<div className="d-flex justify-content-between">
|
||||||
<span className="text-white">{liability.next_installment.due_date}</span>
|
<span className="text-white">{formatDate(liability.next_installment.due_date)}</span>
|
||||||
<span className={liability.next_installment.is_overdue ? 'text-danger' : 'text-primary'}>
|
<span className={liability.next_installment.is_overdue ? 'text-danger' : 'text-primary'}>
|
||||||
{currency(liability.next_installment.amount, liability.currency)}
|
{currency(liability.next_installment.amount, liability.currency)}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user