Last active
August 29, 2015 13:58
-
-
Save viniciusss/10020150 to your computer and use it in GitHub Desktop.
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
INSERT INTO `sqldados`.`store` | |
(`zip`, `fax`, `tel`, `bankno`, `ccustono`, `auxLong1`, `auxLong2`, `dateInscJunta`, `no`, `ddd`, `active`, `bits`, | |
`metano`, `padbyte`, `auxShort1`, `auxShort2`, `name`, `sname`, `otherName`, `cgc`, `addr`, `nei`, `city`, `state`) | |
VALUES ('29980000', '0', '0', '0', '0', '0', '0', '0', '1022', '0', '1', '0', '0', '0', '0', '0', 'START MOVEIS 01', 'ST', | |
'STARMOVEIS', '31.743.818/0034-96', LEFT('AV SETEMBRINO PELISSARI', 32), 'CENTRO', 'PINHEIROS', 'ES'); | |
insert into webpdv.aliquotas_loja | |
select null, 1022, txano, valor_aliquota | |
from webpdv.aliquotas_loja | |
where storeno = 1002; | |
insert into webpdv.lojas_estoques | |
SELECT null, 1022, IF(estoque=1002, 1022, 104), prioridade, id_usuario_alteracao, alteracao | |
FROM webpdv.lojas_estoques | |
WHERE storeno = 1002; | |
INSERT INTO `webpdv`.`lojas_central_entrega` (`storeno`, `central_entrega`, `storeno_deposito`, `id_pedido_entrega_tipo`, | |
`limitacao_uso_cartao`, `usa_venda_ordem`, `inicio_venda_ordem`, `storeno_faturamento`, `id_status`) | |
VALUES ('1022', '1', '104', '5', '0', '1', '20140407', '109', '1'); | |
insert into sqldados.paymst | |
select paymno, 1022, 0, 0 | |
from sqldados.paymst | |
where storeno = 1002; | |
INSERT INTO `ecf`.`ecf` (`ip`, `nome_ecf`, `storeno`, `ecfno`, `endereco_ws`, `id_ecf_tipo`, `bln_tef`) VALUES ('192.168.1022.1111', 'Nao Usar', '1022', '1', '', '1', '1'); | |
INSERT INTO `sqlsi`.`pdv` (`storeno`, `pdvno`, `bits`, `padbyte`) VALUES ('1022', '10221', '0', '0'); | |
insert into webpdv.lojas_horarios_funcionamento | |
select null, 1022, hora_inicio, hora_fim, | |
hora_inicio_sabado, hora_fim_sabado, fuso_horario, | |
fuso_horario_numerico, horario_verao, prioridade, | |
id_usuario_atualizacao, atualizacao | |
from webpdv.lojas_horarios_funcionamento | |
where storeno = 1002; | |
insert into sqldados.bank set no = 4444460, name = 'LJ 1022'; | |
update webpdv.configuracoes_behavior_score set | |
valor_configuracao = concat(valor_configuracao, ',1022') | |
where nome_configuracao = 'mig_automatica_crediario_lojas_ignorar'; | |
# Depois de criar os terminais | |
UPDATE ecf.pdv_gerencial_x_fiscal SET pdv_fiscal = 10221 | |
WHERE storeno = 1022; |
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
insert into sqlsi.prp | |
select | |
fob_wo_disc, | |
disc1, | |
disc2, | |
disc3, | |
disc4, | |
disc5, | |
fob, | |
foblu, | |
ipi, | |
freight, | |
freight_icms, | |
package, | |
dicm, | |
jppm, | |
jppf, | |
adv, | |
adm, | |
loss, | |
costdel1, | |
costdel2, | |
costdel3, | |
cost, | |
costlu, | |
icm, | |
pis, | |
finsoc, | |
comm, | |
profit, | |
refpdel1, | |
refpdel2, | |
refpdel3, | |
refprice, | |
rplu, | |
nrefprice, | |
promo_discount, | |
promo_price, | |
promo_validate, | |
prazo_medio, | |
sp_atacado, | |
sp_atacado_lu, | |
sp_atacado_mult, | |
money1, | |
money2, | |
baseIcmsSubst, | |
icmsSubst, | |
auxLong1, | |
auxLong2, | |
auxLong3, | |
auxLong4, | |
auxMy1, | |
auxMy2, | |
auxMy3, | |
auxMy4, | |
1021, | |
bits, | |
auxShort1, | |
auxShort2, | |
auxShort3, | |
auxShort4, | |
prdno, | |
auxStr | |
from sqlsi.prp | |
where prp.storeno = 104; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment