Commit 4f738436 by Yvon

send ccas transaction cmd : handle case when yearmonth option is not provided

parent 590faf8c
......@@ -203,6 +203,11 @@ class SendCcasTransactionsExportToPrestatairesCommand extends Command
if ($yearmonth) {
$year = substr($yearmonth, 0, 4);
$month = intval(substr($yearmonth, 4, 2));
} else {
$now = new \DateTime();
$now->modify('previous month');
$year = $now->format('Y');
$month = intval($now->format('m'));
}
$this->io->title(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment