Skip to content

Commit

Permalink
Merge pull request odoo-brazil#19 from kmee/feature/contribuintes-sin…
Browse files Browse the repository at this point in the history
…dicato

[ADD] Informações especificas do boleto sindicato
  • Loading branch information
Wagner Pereira authored Aug 1, 2017
2 parents 69fece1 + 911dd39 commit e58f177
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Binary file modified l10n_br_financial_payment_order/data/boleto_sindicato.odt
Binary file not shown.
5 changes: 3 additions & 2 deletions l10n_br_financial_payment_order/febraban/boleto/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ def set_beneficiario(self, beneficiario):
self.boleto.cedente_bairro = self._beneficiario.district or ''
self.boleto.cedente_cep = self._beneficiario.zip or ''
self.boleto.cedente_cidade = self._beneficiario.city or ''
self.boleto.cedente_logradouro = (self._beneficiario.street or) '' + \
', ' + (self._beneficiario.number or 'SN')
self.boleto.cedente_logradouro = \
(self._beneficiario.street or '') + ', ' + \
(self._beneficiario.number or 'SN')
self.boleto.cedente_uf = self._beneficiario.state_id.code or ''

def get_beneficiario(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ def gera_boleto(self):
financial_move.payment_mode_id.beneficiario_digito
boleto.boleto.codigo_sindical = codigo_sindical

# Informações boleto para sindicato
boleto.boleto.total_empregados = \
financial_move.sindicato_total_empregados
boleto.boleto.qtd_contribuintes = \
financial_move.sindicato_qtd_contribuintes
boleto.boleto.total_remuneracao_contribuintes = \
financial_move.sindicato_total_remuneracao_contribuintes

if boleto:
# financial_move.date_payment_created = date.today()
# financial_move.transaction_ref = \
Expand Down

0 comments on commit e58f177

Please sign in to comment.