Created
April 29, 2011 22:01
-
-
Save lucastex/949115 to your computer and use it in GitHub Desktop.
Possível maneira de se criar boletos com o plugin do Grails-Stella
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def boleto = new BoletoBuilder() | |
boleto.build(100.00, "itau") { | |
datas { | |
vencimento xxx | |
documento xxx | |
processamento xxx | |
} | |
cedente { | |
nome xxx | |
agencia xxx, x | |
conta xxx, x | |
convenio xxx | |
carteira xxx | |
nossoNumero xxx, x | |
operacao xxx | |
} | |
sacado { | |
nome xxx | |
cpf xxx | |
cnpj xxx | |
endereco xxx | |
bairo xxx | |
cep xxx | |
cidade xxx, xx | |
} | |
documento xxx | |
pagamento local1, local2 | |
instrucoes linha1, linha2, linha3 | |
informacoes info1, info2, info3, info4, info5 | |
} | |
boleto.render "PNG", response | |
//boleto.render "PDF", response |
Isso me faz ter vontade de ter um Groovy for iOS :)
haha :)
Poxa estava procurando aqui uma coisa parecida com isso.
Uma pergunta funciona com as versoes atuais do GRAILS?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tou finalizando já. Tá aqui o src: https://github.com/blanq/grails-stella/blob/master/src/groovy/br/com/caelum/grails/stella/builder/BoletoBuilder.groovy