Skip to content

Commit

Permalink
Merge pull request #125 from LibreCodeCoop/fix/considera-todos-os-coo…
Browse files Browse the repository at this point in the history
…perados-do-mes-para-cadastrar-no-akaunting

chore: considera todos os cooperados do mês para cadastrar no akaunting
  • Loading branch information
vitormattos authored Aug 6, 2024
2 parents 77db7cb + caf0cf4 commit 049618b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Service/ProducaoCooperativista.php
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,9 @@ public function getPercentualTrabalhadoPorClienteExterno(): array

private function cadastraCooperadoQueProduziuNoAkaunting(): void
{
$produzidoNoMes = $this->getPercentualTrabalhadoPorClienteExterno();
$interno = $this->getPercentualTrabalhadoPorClienteInterno();
$externo = $this->getPercentualTrabalhadoPorClienteExterno();
$produzidoNoMes = $interno + $externo;
$exists = [];
foreach ($produzidoNoMes as $row) {
if (empty($row['akaunting_contact_id'])) {
Expand Down

0 comments on commit 049618b

Please sign in to comment.