Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sistema_mcid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marcio neto
sistema_mcid
Commits
1d33254f
Commit
1d33254f
authored
Nov 03, 2023
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcao formula tarifa caixa
parent
2405eda4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18291 additions
and
18276 deletions
+18291
-18276
SelecaoController.php
app/Http/Controllers/Propostas/SelecaoController.php
+2
-2
app.js
public/js/app.js
+18262
-18258
SelecionarProposta.vue
.../js/components/mod_propostas/admin/SelecionarProposta.vue
+25
-14
DadosSelecaoPropostas.blade.php
..._propostas/proposta/admin/DadosSelecaoPropostas.blade.php
+2
-2
No files found.
app/Http/Controllers/Propostas/SelecaoController.php
View file @
1d33254f
...
...
@@ -504,8 +504,8 @@ class SelecaoController extends Controller
$listaSelecaoProposta
->
vlr_repasse
=
floatval
(
$vlr_repasse
);
$listaSelecaoProposta
->
vlr_tarifa
=
floatval
(
round
(
$vlr_tarifa
,
0
,
PHP_ROUND_HALF_UP
));
$listaSelecaoProposta
->
vlr_final_transferegov
=
floatval
(
$vlr_repasse
)
-
floatval
(
$vlr_tarifa
);
$listaSelecaoProposta
->
vlr_tarifa
=
floatval
(
ceil
(
$vlr_tarifa
));
$listaSelecaoProposta
->
vlr_final_transferegov
=
floatval
(
$vlr_repasse
-
ceil
(
$vlr_tarifa
)
);
$listaSelecaoProposta
->
created_at
=
Date
(
"Y-m-d h:i:s"
);
...
...
public/js/app.js
View file @
1d33254f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
resources/assets/js/components/mod_propostas/admin/SelecionarProposta.vue
View file @
1d33254f
...
...
@@ -284,19 +284,24 @@
},
calcular
(){
if
((
this
.
vlr_repasse
>
238856
)
&&
(
this
.
vlr_repasse
<
777450
)){
this
.
vlr_tarifa
=
Number
(
Math
.
round
(((
this
.
vlr_repasse
-
3500
)
*
0.03100775
)
+
3500
));
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(((
this
.
vlr_repasse
-
3500
)
*
0.03100775
)
+
3500
));
}
else
if
((
this
.
vlr_repasse
>=
777450
)
&&
(
this
.
vlr_repasse
<
1560500
)){
this
.
vlr_tarifa
=
Number
(
Math
.
round
(((
this
.
vlr_repasse
-
3500
)
*
0.03660886
)
+
3500
));
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(((
this
.
vlr_repasse
-
3500
)
*
0.03660886
)
+
3500
));
}
else
if
((
this
.
vlr_repasse
>=
1569500
)
&&
(
this
.
vlr_repasse
<
83523500
)){
this
.
vlr_tarifa
=
Number
(
Math
.
round
(((
this
.
vlr_repasse
-
3500
)
*
0.042145594
)
+
3500
));
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(((
this
.
vlr_repasse
-
3500
)
*
0.042145594
)
+
3500
));
}
else
if
(
this
.
vlr_repasse
>=
83523500
){
this
.
vlr_tarifa
=
Number
(
Math
.
round
(((
this
.
vlr_repasse
-
3500
)
*
0.0421455939
)
+
3500
));
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(((
this
.
vlr_repasse
-
3500
)
*
0.0421455939
)
+
3500
));
}
else
{
this
.
vlr_tarifa
=
Number
(
0
);
}
this
.
vlr_tarifa
=
this
.
formatarValor
(
Number
(
Math
.
round
(
this
.
vlr_tarifa
)),
2
);
this
.
vlr_final_transferegov
=
this
.
formatarValor
(
Number
(
this
.
vlr_repasse
-
this
.
vlr_tarifa
),
2
);
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(
this
.
vlr_tarifa
));
this
.
vlr_final_transferegov
=
Number
(
this
.
vlr_repasse
-
this
.
vlr_tarifa
);
// this.vlr_repasse = this.formatarValor(this.vlr_repasse,2);
this
.
vlr_tarifa
=
this
.
formatarValor
(
this
.
vlr_tarifa
,
2
);
this
.
vlr_final_transferegov
=
this
.
formatarValor
(
this
.
vlr_final_transferegov
,
2
);
},
...
...
@@ -406,21 +411,27 @@
this
.
num_pop_atendida_abastecimento_agua
=
this
.
dados_proposta
.
num_pop_atendida_abastecimento_agua
;
if
((
this
.
dados_proposta
.
vlr_intervencao
>
238856
)
&&
(
this
.
dados_proposta
.
vlr_intervencao
<
777450
)){
this
.
vlr_tarifa
=
Number
(
Math
.
round
(((
this
.
dados_proposta
.
vlr_intervencao
-
3500
)
*
0.03100775
)
+
3500
));
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(((
this
.
dados_proposta
.
vlr_intervencao
-
3500
)
*
0.03100775
)
+
3500
));
}
else
if
((
this
.
dados_proposta
.
vlr_intervencao
>=
777450
)
&&
(
this
.
dados_proposta
.
vlr_intervencao
<
1560500
)){
this
.
vlr_tarifa
=
Number
(
Math
.
round
(((
this
.
dados_proposta
.
vlr_intervencao
-
3500
)
*
0.03660886
)
+
3500
));
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(((
this
.
dados_proposta
.
vlr_intervencao
-
3500
)
*
0.03660886
)
+
3500
));
}
else
if
((
this
.
dados_proposta
.
vlr_intervencao
>=
1569500
)
&&
(
this
.
dados_proposta
.
vlr_intervencao
<
83523500
)){
this
.
vlr_tarifa
=
Number
(
Math
.
round
(((
this
.
dados_proposta
.
vlr_intervencao
-
3500
)
*
0.042145594
)
+
3500
));
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(((
this
.
dados_proposta
.
vlr_intervencao
-
3500
)
*
0.042145594
)
+
3500
));
}
else
if
(
this
.
dados_proposta
.
vlr_intervencao
>=
83523500
){
this
.
vlr_tarifa
=
Number
(
Math
.
round
(((
this
.
dados_proposta
.
vlr_intervencao
-
3500
)
*
0.0421455939
)
+
3500
));
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(((
this
.
dados_proposta
.
vlr_intervencao
-
3500
)
*
0.0421455939
)
+
3500
));
}
else
{
this
.
vlr_tarifa
=
Number
(
0
);
}
this
.
vlr_repasse
=
Number
(
this
.
dados_proposta
.
vlr_intervencao
);
this
.
vlr_tarifa
=
Number
(
Math
.
ceil
(
this
.
vlr_tarifa
).
toFixed
());
this
.
vlr_final_transferegov
=
Number
(
Math
.
ceil
(
this
.
dados_proposta
.
vlr_intervencao
-
this
.
vlr_tarifa
).
toFixed
());
this
.
vlr_repasse
=
this
.
formatarValor
(
this
.
vlr_repasse
,
2
);
this
.
vlr_tarifa
=
this
.
formatarValor
(
this
.
vlr_tarifa
,
2
);
this
.
vlr_final_transferegov
=
this
.
formatarValor
(
this
.
vlr_final_transferegov
,
2
);
this
.
vlr_repasse
=
this
.
formatarValor
(
Number
(
this
.
dados_proposta
.
vlr_intervencao
),
2
);
this
.
vlr_tarifa
=
this
.
formatarValor
(
Number
(
Math
.
round
(
this
.
vlr_tarifa
)),
2
);
this
.
vlr_final_transferegov
=
this
.
formatarValor
(
Number
(
this
.
dados_proposta
.
vlr_intervencao
-
this
.
vlr_tarifa
),
2
);
}
else
{
Swal
({
title
:
'Atenção!'
,
...
...
resources/views/modulo_propostas/proposta/admin/DadosSelecaoPropostas.blade.php
View file @
1d33254f
...
...
@@ -145,11 +145,11 @@
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
primary
mr
-
3
" type="
button
" name="
imprimir
" value="
Imprimir
" onclick="
window
.
print
();
">Imprimir
</button>
<button class="
br
-
button
danger
mr
-
3
" type="
button
" onclick="
javascript
:
window
.
history
.
go
(
-
1
)
">Fechar
<button class="
br
-
button
danger
mr
-
3
" type="
button
" onclick="
window
.
location
.
href
=
'/admin/selecao/propostas/selecionar'
">Fechar
</button>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment