Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adiciona serialização de fatura e duplicatas #381

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

leogregianin
Copy link
Collaborator

@leogregianin leogregianin commented Jan 28, 2025

Issue #350

Informar os dados de Fatura na classe NotaFiscal:

     self.notafiscal = NotaFiscal(
            emitente=self.emitente,
            cliente=self.cliente,
            ...
            fatura_numero="12345",
            fatura_valor_original=Decimal("117.00"),
            fatura_valor_desconto=Decimal("0.00"),
            fatura_valor_liquido=Decimal("117.00"),

Adicionar as duplicatas na função própria, pois é 0-N:

        self.notafiscal.adicionar_duplicata(
            numero='1',
            data_vencimento=datetime.datetime(2025, 1, 27, 12, 0, 0, tzinfo=utc),
            valor=Decimal("39.00"),
        )


@leogregianin leogregianin merged commit 34bef47 into TadaSoftware:main Jan 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants