feat: salvar data original da transação e data de vencimento no cartão
Ao importar fatura de cartão com PaymentDate configurado, a data efetiva da transação passa a ser o vencimento e a data de compra é preservada em original_date. Migration 013 adiciona a coluna original_date em transactions. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
@@ -27,6 +27,7 @@ export interface CSVMapping {
|
||||
field_separator: string
|
||||
skip_negative: boolean
|
||||
all_expenses: boolean
|
||||
payment_date: string
|
||||
}
|
||||
|
||||
export const useImportStore = defineStore('import', () => {
|
||||
|
||||
@@ -22,6 +22,7 @@ const csvMapping = ref<CSVMapping>({
|
||||
field_separator: ';',
|
||||
skip_negative: false,
|
||||
all_expenses: false,
|
||||
payment_date: '',
|
||||
})
|
||||
|
||||
// Quando "Fatura de cartão" é marcado, configura automaticamente as colunas corretas
|
||||
@@ -160,6 +161,10 @@ function fmt(amount: number) {
|
||||
<input type="checkbox" v-model="csvMapping.skip_negative" />
|
||||
Ignorar valores negativos
|
||||
</label>
|
||||
<label v-if="csvMapping.all_expenses" class="fc-label">
|
||||
Data de pagamento (vencimento)
|
||||
<input type="date" v-model="csvMapping.payment_date" class="fc-input" />
|
||||
</label>
|
||||
</div>
|
||||
</NeonPanel>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user