Boleto


#21

Valeu,
segue o log do erro


-----------> MIssue.set_ValueNoCheck: ReleaseNo - Value too long - truncated to length=4 [36]
-----------> GridTable.saveWarning: SaveErrorNoChange - [14]
-----------> MPeriod.isOpen: Automatic Period Control:2018-11-16 00:00:00.0 before first day - 2018-11-18 00:00:00.0 [153]
-----------> MPeriod.isOpen: Nov-18: Not open for SOO (2018-11-16 00:00:00.0) [153]
-----------> MWFActivity.run: MWFNode[185-(DocPrepare),Action=DocumentAction=PR] [153]
java.lang.Exception: @PeriodClosed@
at org.compiere.wf.MWFActivity.performWork(MWFActivity.java:947)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:790)
at org.compiere.wf.MWFProcess.startNext(MWFProcess.java:370)
at org.compiere.wf.MWFProcess.checkActivities(MWFProcess.java:280)
at org.compiere.wf.MWFActivity.setWFState(MWFActivity.java:279)
at org.compiere.wf.MWFActivity.run(MWFActivity.java:807)
at org.compiere.wf.MWFProcess.startWork(MWFProcess.java:502)
at org.compiere.wf.MWorkflow.start(MWorkflow.java:696)
at org.compiere.wf.MWorkflow.startWait(MWorkflow.java:726)
at org.adempiere.util.ProcessUtil.startWorkFlow(ProcessUtil.java:301)
at org.compiere.apps.ProcessCtl.startWorkflow(ProcessCtl.java:574)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:369)

===========> ProcGenerateCNAB.process: java.lang.NullPointerException [220]
java.lang.NullPointerException
at org.adempierelbr.boleto.bank.MItau.generateHeader(MItau.java:182)
at org.adempierelbr.boleto.bank.MItau.generateFile(MItau.java:206)
at org.adempierelbr.model.MLBRCNAB.generateFile(MLBRCNAB.java:110)
at org.adempierelbr.process.ProcGenerateCNAB.doIt(ProcGenerateCNAB.java:107)
at org.compiere.process.SvrProcess.process(SvrProcess.java:147)
at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:105)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:160)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:105)
at org.compiere.apps.ProcessCtl.startProcess(ProcessCtl.java:649)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:394)
at java.lang.Thread.run(Unknown Source)


11:58:09.191 ProcessParameterPanel.saveParameters: MPInstancePara[2000058-lbr_DocDate(d)=2018-11-20 00:00:00.0 - 2018-11-20 00:00:00.0] [14]
11:58:09.191 MPInstancePara.saveNew: [POSave_10cdd7e1-8990-4fca-ab4f-eaa78d087083] - AD_PInstance_Para - AD_PInstance_ID=2000058 AND SeqNo=‘2’ [14]
11:58:09.191 Trx.commit: **** POSave_10cdd7e1-8990-4fca-ab4f-eaa78d087083 [14]
11:58:09.191 Trx.close: POSave_10cdd7e1-8990-4fca-ab4f-eaa78d087083 [14]
11:58:09.191 ProcessParameterPanel.saveParameters: MPInstancePara[2000058-File_Directory(s)=C:\Users\dennio\Documents] [14]
11:58:09.191 ProcessCtl.run: AD_PInstance_ID=2000058, Record_ID=0 [229]
11:58:09.191 Waiting.init: Processando … Favor aguardar … - Sec=5 [229]
11:58:09.222 ProcessCtl.startProcess: ProcessInfo[Geração CNAB,Process_ID=1000001,AD_PInstance_ID=2000058,ClassName=org.adempierelbr.process.ProcGenerateCNAB,Error=false,Summary=,Log=0] [229]
11:58:09.222 ProcGenerateCNAB.lock: AD_PInstance_ID=2000058 [229]
11:58:09.222 ProcGenerateCNAB.doIt: GenerateCNAB Process Account: 2000000 [229]
===========> ProcGenerateCNAB.process: java.lang.NullPointerException [229]
java.lang.NullPointerException
at org.adempierelbr.boleto.bank.MItau.generateHeader(MItau.java:182)
at org.adempierelbr.boleto.bank.MItau.generateFile(MItau.java:206)
at org.adempierelbr.model.MLBRCNAB.generateFile(MLBRCNAB.java:110)
at org.adempierelbr.process.ProcGenerateCNAB.doIt(ProcGenerateCNAB.java:107)
at org.compiere.process.SvrProcess.process(SvrProcess.java:147)
at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:105)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:160)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:105)
at org.compiere.apps.ProcessCtl.startProcess(ProcessCtl.java:649)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:394)
at java.lang.Thread.run(Unknown Source)


12:07:43.446 ProcessParameterPanel.saveParameters: MPInstancePara[2000061-lbr_DocDate(d)=2018-11-20 00:00:00.0 - 2018-11-20 00:00:00.0] [14]
12:07:43.446 MPInstancePara.saveNew: [POSave_5eb0a9d9-862c-4059-9a77-aa0c82f9027e] - AD_PInstance_Para - AD_PInstance_ID=2000061 AND SeqNo=‘2’ [14]
12:07:43.462 Trx.commit: **** POSave_5eb0a9d9-862c-4059-9a77-aa0c82f9027e [14]
12:07:43.462 Trx.close: POSave_5eb0a9d9-862c-4059-9a77-aa0c82f9027e [14]
12:07:43.462 ProcessParameterPanel.saveParameters: MPInstancePara[2000061-File_Directory(s)=C:\Users\dennio\Documents] [14]
12:07:43.462 ProcessCtl.run: AD_PInstance_ID=2000061, Record_ID=0 [255]
12:07:43.462 Waiting.init: Processando … Favor aguardar … - Sec=5 [255]
12:07:43.493 ProcessCtl.startProcess: ProcessInfo[Geração CNAB,Process_ID=1000001,AD_PInstance_ID=2000061,ClassName=org.adempierelbr.process.ProcGenerateCNAB,Error=true,Summary=Processo cancelado,Log=0] [255]
12:07:43.493 ProcGenerateCNAB.lock: AD_PInstance_ID=2000061 [255]
12:07:43.509 ProcGenerateCNAB.doIt: GenerateCNAB Process Account: 2000000 [255]
===========> ProcGenerateCNAB.process: java.lang.NullPointerException [255]
java.lang.NullPointerException
at org.adempierelbr.boleto.bank.MItau.generateHeader(MItau.java:182)
at org.adempierelbr.boleto.bank.MItau.generateFile(MItau.java:206)
at org.adempierelbr.model.MLBRCNAB.generateFile(MLBRCNAB.java:110)
at org.adempierelbr.process.ProcGenerateCNAB.doIt(ProcGenerateCNAB.java:107)
at org.compiere.process.SvrProcess.process(SvrProcess.java:147)
at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:105)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:160)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:105)
at org.compiere.apps.ProcessCtl.startProcess(ProcessCtl.java:649)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:394)
at java.lang.Thread.run(Unknown Source)


14:05:50.946 ProcessParameterPanel.saveParameters: MPInstancePara[2000062-lbr_DocDate(d)=2018-11-20 00:00:00.0 - 2018-11-20 00:00:00.0] [14]
14:05:50.946 MPInstancePara.saveNew: [POSave_4ca12448-e19a-49b1-a14e-c02ce4a560be] - AD_PInstance_Para - AD_PInstance_ID=2000062 AND SeqNo=‘2’ [14]
14:05:51.008 Trx.commit: **** POSave_4ca12448-e19a-49b1-a14e-c02ce4a560be [14]
14:05:51.008 Trx.close: POSave_4ca12448-e19a-49b1-a14e-c02ce4a560be [14]
14:05:51.008 ProcessParameterPanel.saveParameters: MPInstancePara[2000062-File_Directory(s)=C:\Users\dennio\Documents] [14]
14:05:51.008 ProcessCtl.run: AD_PInstance_ID=2000062, Record_ID=0 [265]
14:05:51.008 Waiting.init: Processando … Favor aguardar … - Sec=5 [265]
14:05:51.055 ProcessCtl.startProcess: ProcessInfo[Geração CNAB,Process_ID=1000001,AD_PInstance_ID=2000062,ClassName=org.adempierelbr.process.ProcGenerateCNAB,Error=false,Summary=,Log=0] [265]
14:05:51.071 ProcGenerateCNAB.lock: AD_PInstance_ID=2000062 [265]
14:05:51.133 ProcGenerateCNAB.doIt: GenerateCNAB Process Account: 2000000 [265]
===========> ProcGenerateCNAB.process: java.lang.NullPointerException [265]
java.lang.NullPointerException
at org.adempierelbr.boleto.bank.MItau.generateHeader(MItau.java:182)
at org.adempierelbr.boleto.bank.MItau.generateFile(MItau.java:206)
at org.adempierelbr.model.MLBRCNAB.generateFile(MLBRCNAB.java:110)
at org.adempierelbr.process.ProcGenerateCNAB.doIt(ProcGenerateCNAB.java:107)
at org.compiere.process.SvrProcess.process(SvrProcess.java:147)
at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:105)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:160)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:105)
at org.compiere.apps.ProcessCtl.startProcess(ProcessCtl.java:649)
at org.compiere.apps.ProcessCtl.run(ProcessCtl.java:394)
at java.lang.Thread.run(Unknown Source)


#22

Descobri o problema.
Estava relacionando ao campo descricao da empresa, que nao podia estar em branco.
Aproveitando a deixa, como faco para que o boleto tenha um valor diferente da nota. Deixa eu explicar
tenho alguns clientes que sao de outra localidade onde por eu nao ser cadastrado na prefeitura dessa localidade, eles me descontam um percentual de iss. entao eu emito a nota e o boleto tem que vir no valor com esse desconto.
qual seria o lugar pra fazer isso?


#23

E ai galera, tem como fazer o boleto com o valor diferencial da nota?
ainda nao consegui achar essa opção, se existir.