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
./configure --with-apxs2=/opt/apache2/bin/apxs --enable-zip --with-curl --with-pdo-mysql --with-gd --prefix=/opt/php5 --enable-mbstring --enable-bcmath --with-config-file-scan-dir=/opt/php5/php.d --enable-intl --with-openssl --enaple-ftp |
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
UseCanonicalName Off | |
VirtualDocumentRoot /vagrant/%2/%1/ | |
# Explicando melhor | |
# O apache vai receber uma url dessa forma aqui http://app.empresa.com.br/ | |
# E ele vai procurar pela pasta /vagrant/empresa/app/ | |
# Outro exemplo http://gist.github.com/ | |
# Ele vai procurar por /vagrant/gitgub/gist/ | |
# Tem que habilitar o modulo vhost_alias. |
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
UseCanonicalName Off | |
VirtualDocumentRoot /vagrant/%2/%1/ | |
# Explicando melhor | |
# O apache vai receber uma url dessa forma aqui http://app.empresa.com.br/ | |
# E ele vai procurar pela pasta /vagrant/empresa/app/ | |
# Outro exemplo http://gist.github.com/ | |
# Ele vai procurar por /vagrant/gitgub/gist/ | |
# Tem que habilitar o modulo vhost_alias. |
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
.vagrant/ | |
.idea/ | |
webpdv/nbproject/ | |
webpdv/nbproject/private/private.xml | |
.gitignore | |
webpdv/includes/global.php | |
webpdv/admin/email/ |
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
; Arquivo de configuracoes do WebPDV | |
; Inicio em 09.07.2011 | |
[producao] | |
url.fornecedor = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/fornecedor' | |
url.fabricante = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/fabricante' | |
url.produtoClasse = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/produtoClasse' | |
url.produto = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/produto' | |
url.recebimento = 'http://wms.moveissimonetti.com.br/soap/index/wsdl/service/recebimento' |
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
<?php | |
function execToExc(array $executa) | |
{ | |
if('acerto' != $executa['classe']) | |
throw new Exception($executa['msg']); | |
return $executa; | |
} |
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
<?php | |
// Forma antiga | |
$validarQtde = $this->validarQtdeProdutoPedido($request['f_int_qtty']); | |
if("acerto" != $validarQtde['classe']) { | |
throw new Exception($validarQtde['erro']); | |
} | |
// --------------- |
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
<?php | |
$dataAgendamento = DateTime::createFromFormat('d/m/Y', '01/07/2013'); | |
$dataLimite = new \DateTime('now'); | |
$dataLimite->modify('+120 day'); | |
if($dataAgendamento > $dataLimite) | |
echo 'Deu errado'; |
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
alter table itinerario | |
add cod_itinerario2 varchar(20); | |
update itinerario set cod_itinerario2 = cod_itinerario; | |
alter table pedido | |
add cod_itinerario2 varchar(20); | |
update pedido set cod_itinerario2 = cod_itinerario; |
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
SELECT distinct(c.id_carga) | |
FROM webpdv.cargas c | |
left join webpdv.cargas_entregas_vinculadas cev using(id_carga) | |
LEFT JOIN webpdv.pedidos_entregas USING(id_pedido_entrega) | |
LEFT JOIN webpdv.lojas_central_entrega USING(id_loja_central_entrega) | |
WHERE LEFT(data_hora_criacao, 10) >= '2013-06-24' | |
AND cev.bln_etiqueta = 1 | |
AND id_pedido_entrega_tipo IN(1, 5) | |
AND id_status_entrega NOT IN(3, 5) | |
and exists( |