examples/default/charge/create_charge_balance_sheet.py
# encoding: utf-8
from gerencianet import Gerencianet
from ...credentials import credentials
gn = Gerencianet(credentials.CREDENTIALS)
params = {
'id': 1
}
body = {
'title': 'Balancete Demonstrativo',
'body': [
{
'header': 'Demonstrativo de Consumo',
'tables': [
{
'rows': [
[
{
'align': 'left',
'color': '#000000',
'style': 'bold',
'text': 'Exemplo de despesa',
'colspan': 2
},
{
'align': 'left',
'color': '#000000',
'style': 'bold',
'text': 'Total lançado',
'colspan': 2
}
],
[
{
'align': 'left',
'color': '#000000',
'style': 'normal',
'text': 'Instalação',
'colspan': 2
},
{
'align': 'left',
'color': '#000000',
'style': 'normal',
'text': 'R$ 100,00',
'colspan': 2
}
]
]
}
]
},
{
'header': 'Balancete Geral',
'tables': [
{
'rows': [
[
{
'align': 'left',
'color': '#000000',
'style': 'normal',
'text': 'Confira na documentação da Gerencianet todas as configurações possíveis.',
'colspan': 4
}
]
]
}
]
}
]
}
response = gn.create_charge_balance_sheet(params=params, body=body)
print(response)