Tempo aproximado para leitura: 00:02:00 min
Ocorrência
No módulo Controle Processo Industrial - PRO, ao realizar fechamento de boletim no PIMS PI é apresentada a ocorrência Não está gerando a imagem do certifico para impressão.
Ambiente
TOTVS Agro - TOTVS Agro - Bioenergia - Controle Processo Industrial - PRO - Versão 12
Causa
Esse incidente ocorre, pela ausência das tabelas PROCERTHISTINF e PROCERTHISTINFPROD.
Solução
Após a inclusão das referidas tabelas PROCERTHISTINF e PROCERTHISTINFPROD, o certificado foi impresso com sucesso.
Segue o Script da tabela PROCERTHISTINF: -- Create table create table PROCERTHISTINF ( id_certhistinf NUMBER(12) not null, emp_codemp CHAR(3) not null, dt_validade DATE not null, emp_descri CHAR(40) not null, emp_endereco VARCHAR2(40), emp_cidestpai VARCHAR2(40), emp_cidade VARCHAR2(40), emp_emailsac VARCHAR2(40), emp_fone VARCHAR2(20), emp_fax VARCHAR2(20), emp_cgc CHAR(18), con_exibecnpj CHAR(1) default 'N' ) tablespace PIMS_DATA pctfree 10 initrans 1 maxtrans 255 storage ( initial 64K next 1M minextents 1 maxextents unlimited ); -- Create/Recreate primary, unique and foreign key constraints alter table PROCERTHISTINF add constraint PROCERTHISTINF_PK primary key (ID_CERTHISTINF) using index tablespace PIMS_DATA pctfree 10 initrans 2 maxtrans 255 storage ( initial 64K next 1M minextents 1 maxextents unlimited ); alter table PROCERTHISTINF add constraint PROCERTHISTINF_FK foreign key (EMP_CODEMP) references MSIEMPRE (EMP_CODEMP); Segue o Script tabela PROCERTHISTINFPROD -- Create table create table PROCERTHISTINFPROD ( id_certhistinfprod NUMBER(12) not null, id_certhistinf NUMBER(12) not null, pro_codigo VARCHAR2(15) not null, pro_titulo VARCHAR2(40), pro_subtitulo VARCHAR2(40) ) tablespace PIMS_DATA pctfree 10 initrans 1 maxtrans 255 storage ( initial 64K next 1M minextents 1 maxextents unlimited ); -- Create/Recreate primary, unique and foreign key constraints alter table PROCERTHISTINFPROD add constraint PROCERTHISTINFPROD_PK primary key (ID_CERTHISTINFPROD) using index tablespace PIMS_DATA pctfree 10 initrans 2 maxtrans 255 storage ( initial 64K next 1M minextents 1 maxextents unlimited ); alter table PROCERTHISTINFPROD add constraint PROCERTHISTINFPROD_FK foreign key (ID_CERTHISTINF) references PROCERTHISTINF (ID_CERTHISTINF) on delete cascade; alter table PROCERTHISTINFPROD add constraint PROCERTHISTINFPROD_PROD_FK foreign key (PRO_CODIGO) references PROPRODCOMERC (PRO_CODIGO);
0 Comentários