Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

Com esse plugin é possível gerar arquivos (serão gerados diariamente), com os dados da movimentação sempre de um intervalo de data definido no executável, gerando também somente informações de agrotóxicos.


Configuração

O plugin RelBasf.exe e seu arquivo de configuração Basf.txt devem ser copiados para a pasta C:\Viasoft\Client\Plugins.

Criação de Usuário

Deve ser criado o usuário BASF no Banco de Dados Firebird:

Após a criação do usuário BASF, deverá executar os comando no Banco de Dados.

revoke all on all from BASF

grant select on basf_sales_isales to BASF
grant select on basf_property to BASF
grant select on basf_productstock to BASF
grant select on basf_distributor to BASF
grant select on basf_contact to BASF
grant select on basf_client to BASF
grant select on basf_billing to BASF
grant select on basf_invoice_invoiceitem to BASF
grant select on basf_sales_order to BASF

grant execute ON procedure movestoquetrlocalest TO BASF
grant execute ON procedure pitemsaldoinicial TO BASF
grant execute ON procedure movestoque TO BASF
grant execute ON procedure SALDOITEM TO BASF
grant execute ON procedure PCUSTO TO BASF
grant execute ON procedure BASF_ESTOQUE TO BASF

grant select on localeST TO BASF
grant select on trlocalest TO BASF
grant select on trlocalestcfg TO BASF
grant select on itemsaldo TO BASF
grant select on itemsaldoini TO BASF
grant select on itemprodint TO BASF
grant select on nfitem TO BASF
grant select on nfitemcusto TO BASF
grant select on itemcustoreaj TO BASF
grant select on itemprodintcusto TO BASF
grant select on itemcustomen TO BASF
grant select on itemagro TO  BASF
grant select on itemagroestab TO  BASF
grant select on cidade TO  BASF
grant select on ppessfor TO  BASF
grant select on contamov TO   BASF
grant select on ppescli TO  BASF
grant select on UF TO  BASF
grant select on nfcab TO BASF
grant select on nfcabagrfin TO BASF
grant select on nfcfg TO BASF
grant select on cfop TO BASF
grant select on nfitemimposto TO BASF
grant select on peditemimposto TO BASF
grant select on moeda TO BASF

Para banco Oracle deve ser executado o seguinte comando para criação do usuário BASF:

CREATE USER BASF
IDENTIFIED BY BASF
DEFAULT TABLESPACE VS_USER;
GRANT CREATE SESSION TO BASF;

Criar direito de acesso para o usuário BASF, para sinônimos:

GRANT CREATE synonym TO BASF 

Criar os Sinônimos lincando com as View's do usuário BASF, pelos comandos:

create synonym BASF_SALES_ISALES
for VIASOFT.BASF_SALES_ISALES
create synonym basf_property
for VIASOFT.basf_property
create synonym basf_productstock
for VIASOFT.basf_productstock
create synonym basf_distributor
for VIASOFT.basf_distributork
create synonym basf_contact
for VIASOFT.basf_contact
create synonym basf_client
for VIASOFT.basf_client
create synonym basf_billing
for VIASOFT.basf_billing
create synonym BASF_SALES_ORDER
for VIASOFT.BASF_SALES_ORDER

Criação de Views

Após rodar os comandos, devem ser criadas as Views:

BASF_CLIENT

BASF_BILLING

BASF_CONTACT

BASF_DISTRIBUITOR

BASF_INVOICE_INVOICEITEM

BASF_INVOICE_INVOICEITEM_NEW

BASF_PRODUCTSTOCK

BASF_SALES_ISALES

BASF_SALES_ORDEM

BASF_PROPERTY

FIREBIRD

ORACLE

MANUAL


Versão

Versão da Documentação

Autor/Revisor

1.0

Emanuelli Boschetti

 

 

  • No labels