duandu8707
2017-07-19 10:44
浏览 84
已采纳

解析错误:Laravel中的数字文字无效

I have get following error in my Laravel Application.

Turns out that the error points to the following lines:

/* August */    
$augledcrdt=Companyledger::WhereIn('frm_ledger',$ledgerlist)->whereYear('transaction_date',$curyear)->whereMonth('transaction_date',08)->where('company_id',$companyids)->sum('credit_amt');
$augleddebt=Companyledger::WhereIn('frm_ledger',$ledgerlist)->whereYear('transaction_date',$curyear)->whereMonth('transaction_date',08)->where('company_id',$companyids)->sum('debit_amt');

/* September */     
$sepledcrdt=Companyledger::WhereIn('frm_ledger',$ledgerlist)->whereYear('transaction_date',$curyear)->whereMonth('transaction_date',09)->where('company_id',$companyids)->sum('credit_amt');
$sepleddebt=Companyledger::WhereIn('frm_ledger',$ledgerlist)->whereYear('transaction_date',$curyear)->whereMonth('transaction_date',09)->where('company_id',$companyids)->sum('debit_amt');

图片转代码服务由CSDN问答提供 功能建议

我得到跟随错误

事实证明错误指向以下行:

  / * August * / 
 $ augledcrdt = Companyledger :: WhereIn('frm_ledger',$ ledgerlist) - > whereYear('transaction_date',$ curyear) - > whereMonth('transaction_date',08) -  化合物其中( 'COMPANY_ID',$ companyids) - >总和( 'credit_amt'); 
 $的augleddebt = Companyledger ::其中( 'frm_ledger',$ ledgerlist) - > whereYear( 'TRANSACTION_DATE',$ curyear)  - > whereMonth('transaction_date',08) - > where('company_id',$ companyids) - > sum('debit_amt'); 
 
 / *九月* / 
 $ sepledcrdt = Companyledger :: 其中( 'frm_ledger',$ ledgerlist) - > whereYear( 'TRANSACTION_DATE',$ curyear) - > whereMonth( 'TRANSACTION_DATE',09) - 化合物其中( 'COMPANY_ID',$ companyids) - >总和(”  credit_amt '); 
 $的sepleddebt = Companyledger ::其中(' frm_ledger '$ ledgerlist) - > whereYear(' transaction_d 吃”,$ curyear) - > whereMonth( 'TRANSACTION_DATE',09) - 化合物其中( 'COMPANY_ID',$ companyids) - >总和( 'debit_amt'); 
   \  n 
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题