hasMany('Modules\Project\Entities\InvoiceLine', 'transaction_id'); } /** * Get the project for the transaction. */ public function project() { return $this->belongsTo('Modules\Project\Entities\Project', 'pjt_project_id'); } /** * Returns the list of invoice status. */ public static function invoiceStatuses() { return [ 'final' => __('sale.final'), 'draft' => __('sale.draft'), ]; } }