app/controllers/admin/store/reports_controller.rb
# Report showing how each dropshipper is performing
Report showing how each dropshipper is performing
Report showing how each dropshipper is performing
def dropshipper_performance
    @dropshippers = Affiliate.where(id: Shipment.distinct(:fulfilled_by_id).pluck(:fulfilled_by_id))
        .select(:id, :name)
        .order(:name)
  end
def dropshipper_performance @dropshippers = Affiliate . where ( id : Shipment . distinct ( :fulfilled_by_id ) . pluck ( :fulfilled_by_id ) ) . select ( :id , :name ) . order ( :name ) end
Report showing how each dropshipper is performing
Report showing how each dropshipper is performing