This file contains 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 | |
namespace App\Test\TestCase\Dominio\ObjetoValor; | |
use App\Dominio\ObjetoValor\PeriodoMensal; | |
use Cake\TestSuite\TestCase; | |
/** | |
* Class PeriodoMensalTest | |
* |
This file contains 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 | |
namespace App\Dominio\ObjetoValor; | |
class PeriodoMensal | |
{ | |
private int $mes; | |
private int $ano; | |
private string $separador; |
This file contains 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 | |
public function remover_produto($id, $condicional_id){ | |
$this->Condicional->CondicionalProduto->id = $id; | |
if (!$this->Condicional->CondicionalProduto->exists()) { | |
throw new NotFoundException(__('Invalid condicional')); | |
} | |
if (Parametro::v('ATUALIZAR_ESTOQUE_POR_CONDICIONAL', false)) { | |
$atualizou = $this->Condicional->CondicionalProduto->field('atualizou_estoque'); |
This file contains 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
$.ajax({ | |
url: 'paginaDestino.php', | |
type: 'POST', | |
data: new FormData($('#FormId')[0]), | |
processData: false, | |
contentType: false, | |
success: function (res) { | |
//deu certo | |
}, | |
error: function () { |