import( (string) $this->argument('path'), $this->option('opening-date') ?: null, ); } catch (Throwable $exception) { $this->error($exception->getMessage()); return self::FAILURE; } $this->table(['项目', '数量/金额'], [ ['账户', $result['accounts']], ['店铺', $result['shops']], ['公司', $result['companies']], ['期初账户', $result['opening_rows']], ['期初合计', number_format($result['opening_sum'], 2)], ['账户余额合计', number_format($result['account_balance_sum'], 2)], ['期初日期', $result['opening_date']], ]); if ($this->option('recalculate')) { $this->call('finance-ledger:recalculate'); } $this->info('财务台账基础数据导入完成。'); return self::SUCCESS; } }