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 * | |
FROM webpdv.usuarios | |
WHERE id_usuario = 24641; | |
SELECT md5(123); | |
SELECT * | |
FROM webpdv.pessoa_email; | |
SELECT |
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
UPDATE webpdv.usuarios | |
SET password = md5(123) | |
WHERE id_usuario = 24641; |
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
create TABLE acervo ( | |
id int(11) not null, | |
titulo varchar(80) not null, | |
autor varchar(80) not null, | |
descricao longtext not null, | |
data_cadastro datetime not null, | |
url longtext not null, | |
PRIMARY KEY (id) | |
); | |
create TABLE secao ( |
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
$dbStore = new Db_sqldados_Store(); | |
$dbStore->setNo($this->DadosAtendimento[0]['storeno']); | |
$dadosEstorno = [ | |
'f_int_tipo' => PDV_BancoSaidaValor::TIPO_ESTORNO_CREDIARIO, | |
'f_int_valor_movimento' => $arrMetodoPagamento['valor_recebido'], | |
'f_int_storeno' => $this->DadosAtendimento[0]['storeno'], | |
'f_int_bankno' => $dbStore->getBankno(), | |
'f_int_data_movimento' => date('Ymd'), | |
'f_int_status' => PDV_BancoSaidaValor::STATUS_ESTORNADO, |
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
if (in_array($arrMetodo['xatype'],[Pedido_FormaPagamento::XATYPE_CREDIARIO_CHEQUE,Pedido_FormaPagamento::XATYPE_CHEQUE_AVISTA])) { | |
$cheque = $this->financeiroChequeBuscar->buscar($arrRegistro); | |
if (Financeiro_Cheque_Status::DEPOSITADO == $cheque[0]['status']) { | |
$dadosChamado = [ | |
'f_int_storeno' => $_SESSION['id_loja'], | |
'f_int_chamado_area_atuacao_assunto_id' => Chamado_AreaAtuacao_Assunto_Gerenciar::REEMBOLSO_CLIENTE_ID, | |
'f_int_id_usuario_criacao' => $_SESSION['id_usuario'], |
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
foreach ($conferencia['itens'] as $item) { | |
if(4 != $item['situacaoConserto']['id']) { | |
continue; | |
} | |
$key = trim($item['produto']['id']) . $item['grade']; | |
if(!isset($result[$key])) { | |
$result[$key] = 0; |
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
<Comandos GIT> | |
[Repositório] | |
git –bare init | |
Cria um repositório git para acesso remoto | |
[ Commits ] | |
git add -A | |
// Adiciona todas as alterações, inclusive arquivos novos, para commit |
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 | |
x2.storeno AS Loja, | |
CONCAT(TRIM(x2.prdno), '-', p.name) AS Produto, | |
ROUND(SUM(x2.qtty / 1000)) AS Qtde, | |
REPLACE(ROUND(SUM((x2.price / 100) * (x2.qtty / 1000)), 2), '.', ',') AS Valor | |
FROM sqldados.xalog2 x2 | |
INNER JOIN sqlpdv.pxa | |
ON (pxa.storeno = x2.storeno AND pxa.pdvno = x2.pdvno AND pxa.xano = x2.xano) | |
INNER JOIN sqldados.eord e |
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
/** | |
* Created by cesar on 28/10/16. | |
*/ | |
$(function () { | |
class BtnAdd extends React.Component{ | |
render() { | |
return ( |
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
git checkout -b m master |