* 2015 * 06/01/2015 - problemas de arredondamentos. #alter table nfcoi,desconto,n(12,8) #alter table nfcoi,valor,n(12,6) #alter table nfcoi,preco,n(12,6) #alter table nfcoi,preco_dig,n(12,6) #alter table nfven,hora_emis,c(5) #alter table nfcom,hora_emis,c(5) #alter table nfvei,doc_orig2,c(6) #alter table nfvei,serie_orig2,c(3) #alter table pednci,cod_fornec,c(20) *CADUFs #alter table cadufs,persta_redst1,n(6,4) #alter table cadufs,persta_redst2,n(6,4) #alter table cadufs,persta,n(5,2) *epapronat #alter table epapronat,persta_redst1,n(6,4) #alter table epapronat,persta_redst2,n(6,4) * Desonera??o de ICMS 16/04/2015 Daniel #alter table nfcom,icm_deson_t,n(12,2) #alter table nfcoi,icm_deson_ite,n(12,2) #alter table nfcoi,mot_deson,c(2) #alter table nfven,icm_deson_t,n(12,2) #alter table nfvei,icm_deson_ite,n(12,2) #alter table nfvei,mot_deson,c(2) #alter table pedven,via_web,l *Cartoes Loja VIRTUAL #alter table cartoes, vai_web,l *conpgt Loja VIRTUAL #alter table conpgt, vai_web,l *epapro LOJA VIRTUAL #alter table epapro,link1,c(50) #alter table epapro,link2,c(50) #alter table epapro,descr_prc1,m #alter table epapro,memo2,m #alter table epapro,vai_web,l #alter table epapro,classificacao,c(3) #alter table epapro,memo1,m #alter table epapro,subtitulo,c(40) #alter table epapro,titulo,c(20) *Campos para cart?o de cr?dito #alter table pedven, nrocartao,c(24) #alter table pedven, validade,c(5) #alter table pedven, codseg,c(5) #alter table pedven, nomecartao,c(30) #alter table pedven, cartao,c(15) #alter table pedven, status,c(3) #alter table epapronat,perstasn,n(5,2) #alter table cadufs,perstasn,n(5,2) #alter table grupo,per_lucro,n(6,2) *Campos para SageWeb #alter table genfil,web,l #alter table genleg,cor1,c(15) #alter table gensen,tema,c(20) #alter table genemp,logotipob,m * #alter table fissta,per_pis,n(6,3) #alter table fissta,per_cofis,n(6,3) #alter table epapro,per_pis,n(6,3) #alter table epapro,per_cofins,n(6,3) #alter table epapro,renavam,c(11) #alter table epapro,vei_prop_nome,c(70) #alter table epapro,vei_prop_cgc,c(14) #alter table epapro,vei_prop_end,c(70) #alter table epapro,vei_prop_codcid,c(4) #alter table epapro,vei_placa,c(10) #alter table epapro,codproimg,c(13) #alter table nfven,chave_cam,c(14) #alter table natoper,adju_icms,l #alter table nfvei,b_icm_subret,n(13,2) #alter table nfvei,icm_subret,n(13,2) #alter table nfcoi,b_icm_subret,n(13,2) #alter table nfcoi,icm_subret,n(13,2) #alter table nfvei,descnfce,n(10,3) #alter table nfvei,acresnfce,n(10,3) #alter table epapro,ipi_cenq,c(3) *modulos de usuarios genusu, gensel, gensen #alter table gensel,modulo,c(30) #alter table genusu,modulo,c(30) #alter table gensen,modulo,c(30) * Campos para o PSTSTA integra??o com POSTOWEB #alter table pststa,alias_pgt1,c(3) #alter table pststa,alias_pgt2,c(3) #alter table pststa,alias_pgt3,c(3) #alter table pststa,alias_pgt4,c(3) #alter table pststa,alias_pgt5,c(3) #alter table pststa,alias_pgt6,c(3) #alter table pststa,alias_pgt7,c(3) #alter table pststa,alias_pgt8,c(3) #alter table pststa,alias_pgt9,c(3) #alter table pststa,alias_pgt10,c(3) #alter table pststa,alias_pgt11,c(3) #alter table pststa,alias_pgt12,c(3) #alter table pststa,alias_pgt13,c(3) #alter table pststa,alias_pgt14,c(3) #alter table pststa,alias_pgt15,c(3) #alter table pststa,alias_pgt16,c(3) #alter table pststa,alias_pgt17,c(3) #alter table pststa,alias_pgt18,c(3) #alter table pststa,alias_pgt19,c(3) #alter table pststa,alias_pgt20,c(3) #alter table pststa,campo_pgt1,c(30) #alter table pststa,campo_pgt2,c(30) #alter table pststa,campo_pgt3,c(30) #alter table pststa,campo_pgt4,c(30) #alter table pststa,campo_pgt5,c(30) #alter table pststa,campo_pgt6,c(30) #alter table pststa,campo_pgt7,c(30) #alter table pststa,campo_pgt8,c(30) #alter table pststa,campo_pgt9,c(30) #alter table pststa,campo_pgt10,c(30) #alter table pststa,campo_pgt11,c(30) #alter table pststa,campo_pgt12,c(30) #alter table pststa,campo_pgt13,c(30) #alter table pststa,campo_pgt14,c(30) #alter table pststa,campo_pgt15,c(30) #alter table pststa,campo_pgt16,c(30) #alter table pststa,campo_pgt17,c(30) #alter table pststa,campo_pgt18,c(30) #alter table pststa,campo_pgt19,c(30) #alter table pststa,campo_pgt20,c(30) #alter table pststa,oper_pgt1,c(2) #alter table pststa,oper_pgt2,c(2) #alter table pststa,oper_pgt3,c(2) #alter table pststa,oper_pgt4,c(2) #alter table pststa,oper_pgt5,c(2) #alter table pststa,oper_pgt6,c(2) #alter table pststa,oper_pgt7,c(2) #alter table pststa,oper_pgt8,c(2) #alter table pststa,oper_pgt9,c(2) #alter table pststa,oper_pgt10,c(2) #alter table pststa,oper_pgt11,c(2) #alter table pststa,oper_pgt12,c(2) #alter table pststa,oper_pgt13,c(2) #alter table pststa,oper_pgt14,c(2) #alter table pststa,oper_pgt15,c(2) #alter table pststa,oper_pgt16,c(2) #alter table pststa,oper_pgt17,c(2) #alter table pststa,oper_pgt18,c(2) #alter table pststa,oper_pgt19,c(2) #alter table pststa,oper_pgt20,c(2) *CEST NELES #alter table epapro,cest,c(7) #alter table cadufs,codrec_st,c(10) #alter table pednci,codnat,c(4) #alter table pednci,obs,c(50) #alter table pednco,obs,m #alter table nfven,coo_nfce,n(10) #alter table cadufs,per_fcp,n(5,2) #alter table cadufs,per_partilha,n(5,2) #alter table nfvei,icmd_bc_dest,n(13,2) #alter table nfvei,icmd_pfcp_dest,n(5,2) #alter table nfvei,icmd_picm_dest,n(5,2) #alter table nfvei,icmd_picm_int,n(5,2) #alter table nfvei,icmd_ppartilha,n(5,2) #alter table nfvei,icmd_vfcp_dest,n(13,2) #alter table nfvei,icmd_vicm_dest,n(13,2) #alter table nfvei,icmd_vicm_int,n(13,2) #create table public.epabarra(id serial PRIMARY KEY,codpro char(13),ref_fabric char(13)) WITHOUT OIDS #alter table epabarra,emp_cod,c(2) * B2B Informa??o de interesse do emissor para controle do B2B. (v2.0) #alter table pedvei,b2b_xped,c(15) #alter table pedvei,b2b_nite,c(6) * Tecnospeed #alter table nfcesta,dir_req,c(100) #alter table nfcesta,dir_resp,c(100) * editfmo #alter table editfmo,mot_inv,c(2) * pedven #alter table pedven,desconto,n(10,2) #alter table pedven,acrescimo,n(10,2) * editfmo #alter table editfmo,prateleira,c(10) * moedas #alter table moedas,indpag,c(1) * clichave #CREATE TABLE public.clichave(codcli CHAR(6),clichave CHAR(13),id SERIAL) WITH (oids = false); #CREATE INDEX clichave_idx ON public.clichave USING btree (clichave COLLATE pg_catalog."default"); * fissta #alter table fissta,integracao,c(20) * cliente #alter table cliente,valor_adi,n(12,2) * natoper #alter table natoper,codnatf,c(4) * textos 06/06/2016 - passamos para Text #alter table textos,linha1,m * cliente #alter table cliente,indiedest,c(1) * epapronat #CREATE TABLE public.epapronat(codpro CHAR(13),codnatin CHAR(4),uf CHAR(2),id SERIAL,emp_cod CHAR(2),codnatex CHAR(4),codgrp CHAR(2),persta NUMERIC(5,2),codnatinpf CHAR(4),codnatexpf CHAR(4),persta_redst1 NUMERIC(6,4),persta_redst2 NUMERIC(6,4),perstasn NUMERIC(5,2)) *forpro #alter table forpro,coduni,c(2) #CREATE TABLE public.nferef (id SERIAL,refnfe CHAR(44),alias_ori CHAR(3),chave_ori INTEGER,emp_cod CHAR(2),tpdoc CHAR(2),tpnf CHAR(2),necf CHAR(3),ncoo CHAR(6),nfp_cuf CHAR(2),nfp_aamm CHAR(4),nfp_cgc CHAR(14),nfp_ie CHAR(14),nfp_mod CHAR(2),nfp_serie CHAR(3),nfp_nnf CHAR(6),CONSTRAINT nferef_pkey PRIMARY KEY(id)) #CREATE TABLE public.nfeaut (id SERIAL,alias CHAR(3),coddes CHAR(6),cgc CHAR(14),emp_cod CHAR(2),email CHAR(200),CONSTRAINT nfeaut_pkey PRIMARY KEY(id)) #alter table nfesta,ftp_envia,l #alter table nfesta,ftp_end,c(100) #alter table nfesta,ftp_user,c(60) #alter table nfesta,ftp_senha,c(60) #alter table nfesta,ftp_dir,c(60) #alter table nfcesta,ftp_envia,l #alter table nfcesta,ftp_end,c(100) #alter table nfcesta,ftp_user,c(60) #alter table nfcesta,ftp_senha,c(60) #alter table nfcesta,ftp_dir,c(60) #alter table nfcesta,marca_impr,c(2) #alter table nfcesta,ctg_envaut,l #alter table nfcesta,dircentral,c(100) #alter table epapronat,cst_icmsinpf,c(4) #alter table epapronat,cst_icmsin,c(4) #alter table epapronat,cst_icmsexpf,c(4) #alter table epapronat,cst_icmsex,c(4) #alter table epapronat,per_icmin,n(5,2) #alter table epapronat,per_icmex,n(5,2) #alter table nfven,rbq_placa,c(7) #alter table nfven,rbq_placa_uf,c(2) #alter table nfven,rbq_placa_rntc,c(20) * comsta #alter table comsta,integracao,c(20) * peso e peso bruto 3 casas decimais #alter table nfven,peso,n(12,3) #alter table nfven,peso_bruto,n(12,3) #alter table nfcom,peso,n(12,3) #alter table nfcom,peso_bruto,n(12,3) #alter table nfven,nvol,c(60) #alter table nfcom,nvol,c(60) * schame no genemp #alter table genemp,schema,c(5) #alter table nfvei,pfcp_orig,n(5,2) *CLIPTS #alter table clipts,pontos,n(15,5) #alter table clipts,chave,i #alter table clipts,datar,d #alter table clipts,orig,c(3) * PTSStA #alter table ptssta,diasvalidade,i * cliente #alter table cliente,idfid,c(15) * epapro NFe 4.00 e precos por unidade #alter table epapro,descanp,c(100) #alter table epaprc,coduni_prc,c(2) #alter table epaprc,coduni_prc1,c(2) #alter table epaprc,coduni_prc2,c(2) #alter table epaprc,coduni_prc3,c(2) #alter table epaprc,coduni_prc4,c(2) #alter table epaprc,coduni_prc5,c(2) #alter table epaprc,coduni_prc6,c(2) * ctrsta per_multa #alter table ctrsta,per_multa,n(7,3) * REPRES #alter table repres,cor,i * EDITFMO #alter table editfmo,horac,c(10) #alter table editfmo,etiq,l * BANCORET #alter table bancoret,nroidentificacao,c(25) * BCOBCO #alter table bcobco,id_perfil,c(50) #alter table bcobco,caminhoanexo,c(100) #alter table bcobco,emailassunto,c(100) #alter table bcobco,emailbody,c(100) #alter table bcobco,instrucaixa,m #alter table bcobco,obs1,c(50) #alter table bcobco,obs2,c(50) #alter table bcobco,obs3,c(50) #alter table bcobco,obs4,c(50) #alter table bcobco,auxiliar1,c(50) #alter table bcobco,auxiliar2,c(50) #alter table bcobco,auxiliar3,c(50) #alter table bcobco,auxiliar4,c(50) #alter table bcobco,caminhoxml,c(100) #alter table bcobco,caminhoremessa,c(100) #alter table bcobco,caminhoboleto,c(100) #alter table bcobco,caminhoretorno,c(100) #alter table bcobco,nossonumero,i * CTRSTA #alter table ctrsta,script,m #alter table ctrsta,scriptret,m #alter table epapro,ordtouc,i #alter table fornec,lct_ctp,l * Correção do pedido de venda gerado pelo caixa #alter table pedven,cam_nrodoc,c(6) #alter table pedven,cam_serie,c(3) *Cartao #alter table cartoes,tband,c(2) *Nome cidade na NFe #alter table cidade,nomecid,c(30) *Natureza de operação FCP, DIFAL e VALOR APROXIMADOS TRIBUTOS #alter table natoper,cal_fcp,l #alter table natoper,cal_difal,l #alter table natoper,ncal_apxtri,l * % ICM ST #alter table nfvei,per_icmst,n(5,2) #alter table nfcoi,per_icmst,n(5,2) * EpaFAL codfor #alter table epafal,codfor,c(6) * Pedido compra via classe nova #create table public.tpednci(id serial PRIMARY KEY,tty char(2),codpro char(13),qtde numeric(7,2),login char(10),emp_cod char(2),coduni char(2)) WITHOUT OIDS * Funrural contranota #alter table comsta,per_rural,n(5,2) #alter table comsta,per_ruralpj,n(5,2) * Nfcoi controle de saldo #alter table nfcoi,qtde_ent,n(10,4) #alter table nfcoi,qtde_sai,n(10,4) * ViewSta para views_90 #create table public.viewsta(dias_90 INTEGER) WITHOUT OIDS * genacs #alter table genacs,script_iniccontrol,m * gendid #alter table gendid,vlrpadrao,c(100) #alter table gendid,enabled,l #alter table gendid,visible,l * Epapro #alter table epapro,capactnq,n(10,3) * Codigo da GIA #alter table epapro,codgia,c(10) * idweb genacs #alter table genacs,idweb,c(50) * 28/10/2017 #alter table nfexport,dtre,d #alter table nfexport,nde,c(15) #alter table nfexport,dtde,d #alter table nfexport,nchc,c(20) #alter table nfexport,dtchc,d #alter table nfexport,tpchc,c(2) #alter table nfexport,dtavb,d * 08/11/2017 #alter table pedvei,b_icm_tri,n(12,2) #alter table pedvei,b_icm_sub,n(12,2) * 24/11/2017 * MARCA #alter table marcas,cor,i * 22/12/2017 #alter table pedvei,qtde_m,n(10,3) #alter table pedvei,largura,n(7,3) #alter table pedvei,altura,n(7,3) #alter table pedvei,comprim,n(7,3) #alter table nferef,nfp_cuf,C(2) #alter table nferef,nfp_aamm,C(4) #alter table nferef,nfp_cgc,C(14) #alter table nferef,nfp_ie,C(14) #alter table nferef,nfp_mod,C(2) #alter table nferef,nfp_serie,C(3) #alter table nferef,nfp_nnf,C(6) #alter table epapro,per_fcp,n(5,2)