Hi, If you want to find ReturnReasonCodeId of custInvoiceJour in returnReasonCode table then try below code where you mentioned '// suspect this line error but what's wrong?' returnReasonCode = ReturnReasonCode::find(returnReasonCodeID); You are finding returnReasonCodeID but not using it in ReturnReasonCode find method.
↧