Skip to content

Commit 049618b

Browse files
authored
Merge pull request #125 from LibreCodeCoop/fix/considera-todos-os-cooperados-do-mes-para-cadastrar-no-akaunting
chore: considera todos os cooperados do mês para cadastrar no akaunting
2 parents 77db7cb + caf0cf4 commit 049618b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Service/ProducaoCooperativista.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,9 @@ public function getPercentualTrabalhadoPorClienteExterno(): array
753753

754754
private function cadastraCooperadoQueProduziuNoAkaunting(): void
755755
{
756-
$produzidoNoMes = $this->getPercentualTrabalhadoPorClienteExterno();
756+
$interno = $this->getPercentualTrabalhadoPorClienteInterno();
757+
$externo = $this->getPercentualTrabalhadoPorClienteExterno();
758+
$produzidoNoMes = $interno + $externo;
757759
$exists = [];
758760
foreach ($produzidoNoMes as $row) {
759761
if (empty($row['akaunting_contact_id'])) {

0 commit comments

Comments
 (0)