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
# frozen_string_literal: true | |
module BankAccounts | |
class PerformTransaction < ApplicationService | |
BASE_FEE = 5 | |
HIGHER_FEE = 7 | |
ADIOTIONAL_FEE = 10 | |
BUSINESS_HOURS = 9..18 | |
def initialize(transaction_params) |
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
const permissionsWithoutDescription = [ | |
{ | |
"id": 4957457360355328, | |
"name": "ERP_DEVICES", | |
"parent": "ERP_WEB", | |
"accessGroup": 6196405537603584, | |
"type": "DENIED", | |
"version": 0 | |
}, | |
{ |
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
{ | |
"content": [ | |
{ | |
"name": "ERP_WEB", | |
"editable": true, | |
"visible": true, | |
"description": "Aplicativo ERP (Web)", | |
"type": "DENIED", | |
"version": 0 | |
}, |
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
import React, { useState, useEffect } from 'react' | |
import { | |
Table, | |
TableBody, | |
TableCell, | |
TableContainer, | |
TableHead, | |
TableRow, | |
Icon, |
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
function dataImport(db, callback) { | |
var students = db.collection('students'); | |
var courses = db.collection('courses'); | |
var instructors = db.collection('instructors'); | |
// create student records | |
students.insertMany([ | |
{ | |
"_id": "john.shore", |
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
{ | |
"response": "success", | |
"data": { | |
"total": 75, | |
"content": [ | |
{ | |
"userName": "Lucas Campos Falcão", | |
"sessionId": 1, | |
"startDateTime": "2019-08-17 13:07:48", | |
"endDateTime": "2019-08-19 17:45:09", |
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
type Product @model { | |
createdAt: DateTime! | |
id: ID! @isUnique | |
description: String! | |
price: String! | |
updatedAt: DateTime! | |
} | |
type Deliveryman @model { | |
createdAt: DateTime! |
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
confirmSelectedAll() { | |
const modalRef = this.modalConfirm.open(ModalConfirmComponent); | |
modalRef.componentInstance.message = `Deseja realmente carregar todos as ${ | |
this.pagination.total_count | |
} Cobranças?`; | |
modalRef.result.then(result => { | |
if (result) { | |
this.paramsUpdate = { |
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
import React, { Component } from 'react'; | |
import styled from 'styled-components'; | |
import PropTypes from 'prop-types'; | |
import { CircularProgress } from 'material-ui'; | |
import Modal from 'react-responsive-modal'; | |
import { CHANGE_PASSWORD } from '../../../constants/feedbackMessages'; | |
import Submit from '../../../components/Button/Submit'; | |
import InputText from '../../../components/InputText/InputText'; | |
import InputPassword from '../../../components/InputText/InputPassword'; |
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
import { combineReducers } from 'redux'; | |
import AuthReducer from './AuthReducer'; | |
import DashboardReducer from './DashboardReducer'; | |
import SnackbarReducer from './SnackbarReducer'; | |
import ModalReducer from './ModalReducer'; | |
const rootReducer = combineReducers({ | |
auth: AuthReducer, |
NewerOlder