Advertisement
Guest User

Untitled

a guest
Sep 25th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. for ($b = 0; $b < $num_parcelas; $b++) {
  2.  
  3. $data = $data_vencimento->format('Y-m-d');
  4. if ($b > 0)
  5. $data = $data_vencimento->addDays($intervalo_parcelas)->format('Y-m-d');
  6.  
  7. $parcelas[] = [
  8. 'cliente_id' => $cliente->id,
  9. 'status' => 0,
  10. 'historico' => 'Renegociação de débitos. Parcela ' . ($b + 1) . '/' . $num_parcelas,
  11. 'valor' => number_format($valor_parcela, 2, ',', '.'),
  12. 'faturamento_id' => $faturamento,
  13. 'parcial' => 0,
  14. 'data_vencimento' => $data
  15. ];
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement