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
| import { CommonModule } from '@angular/common'; | |
| import { NgModule } from '@angular/core'; | |
| import { FilterByIdPipe } from 'src/shared/pipes/filterbyid.pipe'; | |
| import { CadastroClienteRoutingModule } from './cadastro-cliente-routing.module'; | |
| import { CadastroClienteComponent } from './cadastro-cliente.component'; | |
| @NgModule({ | |
| declarations: [ | |
| CadastroClienteComponent, |
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
| import { CommonModule, registerLocaleData } from '@angular/common'; | |
| import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http'; | |
| import localePt from '@angular/common/locales/pt'; | |
| import { LOCALE_ID, NgModule } from '@angular/core'; | |
| import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | |
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | |
| import { CKEditorModule } from '@ckeditor/ckeditor5-angular'; | |
| import { CalendarModule as CalendarAngularModule, DateAdapter } from 'angular-calendar'; | |
| import { adapterFactory } from 'angular-calendar/date-adapters/date-fns'; |
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
| $planos = PlanosFunerarios::where(function ($query) use ($request){ | |
| if (isset($request->cadastro_at)) | |
| $query->whereDate('planos_funerarios.data_os','>=',Carbon::parse($request->cadastro_at)->format('Y-m-d')); | |
| if (isset($request->cadastro_end)) | |
| $query->whereDate('planos_funerarios.data_os','<=',Carbon::parse($request->cadastro_end)->format('Y-m-d')); | |
| if(isset($request->emissao_at)) | |
| $query->whereDate('planos_funerarios.data_carne','>=', $request->emissao_at); |
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
| public function cancelar($contas = array()){ | |
| $dados["tipo"] = "boleto.cancelar"; | |
| for($i=0;$i<count($contas);$i++){ | |
| $dados["meucodigo"] = $contas[$i]['id']; | |
| $contaPadrao = ContasBancarias::where('id',$contas[$i]['conta_bancaria'])->get()[0]; | |
| $token = $contaPadrao->token; |
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
| public function pesquisarFornecedor(Request $request) | |
| { | |
| try{ | |
| $fornecedores = Clientes::where([ | |
| ['nome_fantasia','LIKE','%'.$request->fornecedor.'%'], | |
| ['tipo_cadastro','Fornecedor'] | |
| ])->limit(4)->get(); |
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
| // subscribe | |
| this.fornecedores$ = this.fornecedorPesquisado.pipe( | |
| debounceTime(300), | |
| distinctUntilChanged(), | |
| switchMap((descricao: string) => this.entradaMercadoriasService.getFornecedor(descricao)), | |
| ) | |
| // keyup event(input) | |
| searchFornecedor(descricao){ | |
| this.fornecedorPesquisado.next(descricao); |
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
| //app.html | |
| <input (keyup)="buscaFornecedor($event.target.value)" autofocus [(ngModel)]="fornecedor_nome" name="nome_cliente" id="nome_cliente" class="input-default clearCliente" [class.load]="loading_f == true" autocomplete="off" type="text"> | |
| // app.component.ts | |
| // constructor | |
| this.entradaMercadoriasService.getFornecedor(this.fornecedorPesquisado) | |
| .subscribe((data: any)=>{ | |
| console.log(JSON.stringify(data)); | |
| this.loading_f = false; |
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
| import { Component, OnInit } from '@angular/core'; | |
| import { Router, ActivatedRoute } from "@angular/router"; | |
| import { EntradaMercadoriasService } from '../entrada-mercadorias.service'; | |
| import { ToastrService } from 'ngx-toastr'; | |
| import { AppService } from '../app.service'; | |
| import { Parcelas } from '../parcelas.class'; | |
| import { EntradaMercadoria } from '../interfaces/entrada-mercadoria'; | |
| declare var jquery:any; | |
| declare var $ :any; |
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 (change)="setBancoParcela($event.target.value, parcela)" class="input-default" name="forma_pagamento_1" id="forma_pagamento_1"> | |
| <option value="0" [selected]="parcela.forma_parcela == this.value">Banco</option> | |
| <option value="1" [selected]="parcela.forma_parcela == this.value">BNDES</option> | |
| <option value="2" [selected]="parcela.forma_parcela == this.value">Boleto</option> | |
| <option value="3" [selected]="parcela.forma_parcela == this.value">Cartão de Crédito</option> | |
| <option value="4" [selected]="parcela.forma_parcela == this.value">Cartão de Débito</option> | |
| <option value="5" [selected]="parcela.forma_parcela == this.value">CH Descontado</option> | |
| <option value="6" [selected]="parcela.forma_parcela == this.value">Cheque</option> | |
| <option value="7" [selected]="parcela.forma_parcela == this.value">DDA</option> | |
| <option value="8" [selected]="parcela.forma_parcela == this.value">Débito Automático</option> |
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
| public function progress(){ | |
| return response()->json(session('progress')); | |
| } | |
| public function salvarNota(Request $request) | |
| { | |
| $NFeDados = (object) $request->NFeDados[0]; | |
| $NFeReferenciada = (object) $request->NFeReferenciadas; | |
| $NFeDestinatario = (object) $request->NFeDestinatario[0]; |
NewerOlder